mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
JS: Add: Test case for checking if regex via using toSpliced
This commit is contained in:
@@ -4,3 +4,8 @@ function detectRegexViaSplice(string) {
|
||||
let found = getMyThing().search('regex'); // NOT OK
|
||||
arr.splice(found, 1);
|
||||
};
|
||||
|
||||
function detectRegexViaToSpliced(string) {
|
||||
let found = getMyThing().search('regex'); // NOT OK -- Should be marked as regular expression but it is not.
|
||||
arr.toSpliced(found, 1);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user