-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RegExp] Named Capture groups #521
Comments
@zloirock I would like to contribute , can you tell me what needs to be done? |
@AlokTakshak you could find some basic info here. As an example, you could take a look at |
If you have any more detailed questions - just ask me. |
|
Seems something like here https://github.com/commenthol/named-regexp-groups, but in the main class. |
|
@zloirock Due to inactivity, I've decided to make a quick dive into this issue. To check if named groups are not supported: var NCG_INCLUDED = /(.?)/.exec('').groups !== undefined;
After that, it goes to extracting group names from the regexp source, deleting them from there, as after we can make matching with match results by indexes. Would be happy to hear your thoughts about it! |
By my understanding, |
I am receiving an unexpected qualifier error in IE 11 using the following expression which is coming from the RegExp constructor polyfill.
I wanted to use pathRegex by itself but the normal regex variable is suppose to be made up of the pathRegex variable. Right now I can work around this by copying it over, but I would prefer to use the variable to construct the whole regex.
I am using core-js@3 and babel-preset-env@7.4.2
I must say the usage flag recently introduced is making my job of maintaining IE 11 compatibility a lot easier!
The text was updated successfully, but these errors were encountered: