mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
12 lines
309 B
JavaScript
12 lines
309 B
JavaScript
new RegExp('^http://test\.example.com'); // NOT OK
|
|
|
|
function detectRegexViaSplice(string) {
|
|
let found = getMyThing().search('regex'); // NOT OK
|
|
arr.splice(found, 1);
|
|
};
|
|
|
|
function detectRegexViaToSpliced(string) {
|
|
let found = getMyThing().search('regex'); // NOT OK
|
|
arr.toSpliced(found, 1);
|
|
};
|