mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Update RegExp handling and add test case
Co-authored-by: erik-krogh <erik-krogh@github.com>
This commit is contained in:
@@ -181,4 +181,5 @@ const debug = require('debug')('test');
|
||||
console.log(password.replace(new RegExp(".", "g"), "*")); // OK
|
||||
console.log(password.replace(new RegExp("."), "*")); // NOT OK
|
||||
console.log(password.replace(new RegExp(".", unknownFlags()), "*")); // OK -- Most likely not a problem.
|
||||
console.log(password.replace(new RegExp("pre_._suf", "g"), "*")); // OK
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user