Skip to content

Raise IndexError on unmatched subpattern for MatchData#begin and #end#12810

Merged
straight-shoota merged 2 commits intocrystal-lang:masterfrom
straight-shoota:fix/regex-matchdata-unmatched-capture
Dec 2, 2022
Merged

Raise IndexError on unmatched subpattern for MatchData#begin and #end#12810
straight-shoota merged 2 commits intocrystal-lang:masterfrom
straight-shoota:fix/regex-matchdata-unmatched-capture

Conversation

@straight-shoota
Copy link
Member

Resolves #12806

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:text labels Nov 30, 2022
@straight-shoota straight-shoota added this to the 1.7.0 milestone Dec 1, 2022
@straight-shoota straight-shoota merged commit 49edc0b into crystal-lang:master Dec 2, 2022
@straight-shoota straight-shoota deleted the fix/regex-matchdata-unmatched-capture branch December 2, 2022 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:text

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent behaviour for unmatched subpatterns in Regex::Matchdata

2 participants