Skip to content

Only capturing groups update the group index#28

Merged
mathiasbynens merged 2 commits intomathiasbynens:masterfrom
nicolo-ribaudo:issue-27
Sep 13, 2019
Merged

Only capturing groups update the group index#28
mathiasbynens merged 2 commits intomathiasbynens:masterfrom
nicolo-ribaudo:issue-27

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
Collaborator

Fixes #27

case 'group':
groups.lastIndex++;
if (item.behavior == 'normal') {
groups.lastIndex++;
Copy link
Copy Markdown
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