-
-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transformer): RegExp transform handle
Term::Quantifier
(#5501)
`Term::Quantifier` contains a nested `Term` so we need to recurse into that `Term` to check if it contains any unsupported syntax.
- Loading branch information
1 parent
0c43d0c
commit d1ece19
Showing
7 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
.../tests/esbuild-tests/test/fixtures/regexp/transform-named-capturing-groups-regex/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
c1 = /(?<a>b)/ | ||
c2 = /((?<a>b)){2}/ |
3 changes: 2 additions & 1 deletion
3
...tests/esbuild-tests/test/fixtures/regexp/transform-named-capturing-groups-regex/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
c1 = new RegExp("(?<a>b)", ""); | ||
c1 = new RegExp("(?<a>b)", ""); | ||
c2 = new RegExp("((?<a>b)){2}", ""); |
3 changes: 2 additions & 1 deletion
3
...rmance/tests/esbuild-tests/test/fixtures/regexp/transform-unicode-property-regex/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
d1 = /\p{Emoji}/u | ||
d1 = /\p{Emoji}/u | ||
d2 = /\p{Emoji}{2}/u |
3 changes: 2 additions & 1 deletion
3
...mance/tests/esbuild-tests/test/fixtures/regexp/transform-unicode-property-regex/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
d1 = new RegExp("\\p{Emoji}", "u"); | ||
d1 = new RegExp("\\p{Emoji}", "u"); | ||
d2 = new RegExp("\\p{Emoji}{2}", "u"); |