mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
JS: Fix: now one can determine regex via Array.prototype.toSpliced function call.
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
| tst.js:1:12:1:38 | '^http: ... le.com' | is a regular expression |
|
||||
| tst.js:4:37:4:43 | 'regex' | is a regular expression |
|
||||
| tst.js:9:37:9:43 | 'regex' | is a regular expression |
|
||||
|
||||
@@ -6,6 +6,6 @@ function detectRegexViaSplice(string) {
|
||||
};
|
||||
|
||||
function detectRegexViaToSpliced(string) {
|
||||
let found = getMyThing().search('regex'); // NOT OK -- Should be marked as regular expression but it is not.
|
||||
let found = getMyThing().search('regex'); // NOT OK
|
||||
arr.toSpliced(found, 1);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user