mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge pull request #2468 from max-schaefer/js/regexp-predecessor
Approved by asgerf
This commit is contained in:
@@ -26,4 +26,7 @@
|
||||
/^(^y|^z)(u$|v$)$/;
|
||||
|
||||
// OK
|
||||
/x*^y/;
|
||||
/x*^y/;
|
||||
|
||||
// OK
|
||||
/(?<=(^|\/)(\.|\.\.))$/;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
| tst.js:2:10:2:10 | $ | This assertion can never match. |
|
||||
| tst.js:11:3:11:3 | $ | This assertion can never match. |
|
||||
| tst.js:20:3:20:3 | $ | This assertion can never match. |
|
||||
| tst.js:38:6:38:6 | $ | This assertion can never match. |
|
||||
|
||||
@@ -32,4 +32,7 @@
|
||||
/x(?!y+$).*y.*/;
|
||||
|
||||
// OK
|
||||
/x(?=[yz]+$).*yz.*/;
|
||||
/x(?=[yz]+$).*yz.*/;
|
||||
|
||||
// NOT OK
|
||||
/(?<=$x)yz/;
|
||||
|
||||
Reference in New Issue
Block a user