We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2333c53 commit fa5093fCopy full SHA for fa5093f
javascript/extractor/tests/es2024/input/intersection.js
@@ -0,0 +1,7 @@
1
+/[[abc]&&[bcd]]/v; // Valid use of intersection operator, matches b or c
2
+/abc&&bcd/v; //Valid regex, but no intersection operation: Matches the literal string "abc&&bcd"
3
+/[abc]&&[bcd]/v; // Valid regex, but incorrect intersection operation:
4
+ // - Matches a single character from [abc]
5
+ // - Then the literal "&&"
6
+ // - Then a single character from [bcd]
7
+/[[abc]&&[bcd]&&[c]]/v; // Valid use of intersection operator, matches c
0 commit comments