mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
extract regexp literals from string concatenations
This commit is contained in:
14
javascript/extractor/tests/regexp/input/multipart.js
Normal file
14
javascript/extractor/tests/regexp/input/multipart.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var reg = new RegExp("foo" + "bar");
|
||||
|
||||
var reg2 = new RegExp("foo"
|
||||
+ "bar");
|
||||
|
||||
var reg3 = new RegExp(
|
||||
"foo" + "bar");
|
||||
|
||||
var reg4 = new RegExp(
|
||||
"foo" +
|
||||
"bar" +
|
||||
"baz" +
|
||||
"qux"
|
||||
);
|
||||
Reference in New Issue
Block a user