Files
codeql/javascript/ql/test/library-tests/RegExp/IsRegex/tst.js

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);
};