feat(es/regexp): Transpile unicode property escapes in RegExp constructor calls#11542
feat(es/regexp): Transpile unicode property escapes in RegExp constructor calls#11542
Conversation
…ctor calls
Previously, SWC only transformed unicode property escapes (\p{...} and
\P{...}) in regex literals (/\p{ID_Start}/u). This adds support for
transforming them in RegExp constructor calls as well:
- new RegExp('\\p{ID_Start}', 'u')
- RegExp('\\p{ID_Start}', 'u')
Closes #11539
Co-authored-by: Donny/강동윤 <kdy1@users.noreply.github.com>
|
|
|
Binary Sizes
Commit: 2f3cc89 |
|
@claude fix clippy |
|
Claude finished @kdy1's task in 2m 31s —— View job Fixed Clippy Warning
Fixed 1 clippy warning in |
Co-authored-by: Donny/강동윤 <kdy1@users.noreply.github.com>
| @@ -0,0 +1,5 @@ | |||
| { | |||
| "jsc": { | |||
Previously, SWC only transformed unicode property escapes (
\p{...}and\P{...}) in regex literals (/\p{ID_Start}/u). This adds support for transforming them inRegExpconstructor calls as well.Closes #11539
Generated with Claude Code