You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional information
I'm not 100% sure if this is something that TypeScript actually should be doing so if that's not the case I'd like to get some details on how to properly transpile this.
The text was updated successfully, but these errors were encountered:
TypeScript Version:
3.7.2 (3.7.4 and nightly (3.8.0) as well)
Search Terms:
Named capture groups
Named capturing groups
Regex
ES2018.RegExp
Expected behavior:
The named capture group in the regex gets transpiled to the correct target (
es5
in our case). Something like what@babel/plugin-transform-named-capturing-groups-regex
does?Actual behavior:
The named capture group ends up in the compiled code while only Chrome currently supports this.
Related Issues:
#31241
Code
Live Playground
Here
Additional information
I'm not 100% sure if this is something that TypeScript actually should be doing so if that's not the case I'd like to get some details on how to properly transpile this.
The text was updated successfully, but these errors were encountered: