Skip to content
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

Only capturing groups update the group index #28

Merged
merged 2 commits into from Sep 13, 2019

Conversation

nicolo-ribaudo
Copy link
Collaborator

Fixes #27

@@ -221,7 +221,9 @@ const processTerm = (item, regenerateOptions, groups) => {
);
break;
case 'group':
groups.lastIndex++;
if (item.behavior == 'normal') {
groups.lastIndex++;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This indentation problem is a GitHub rendering bug:

if (item.behavior == 'normal') {
groups.lastIndex++;
}

@mathiasbynens mathiasbynens merged commit d386c43 into mathiasbynens:master Sep 13, 2019
@nicolo-ribaudo nicolo-ribaudo deleted the issue-27 branch September 13, 2019 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect namedGroup index when lookbehind assertions present
2 participants