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

Make re module return nil for unmatched captures instead of empty string #1605

Merged
merged 2 commits into from
Oct 30, 2014
Merged

Make re module return nil for unmatched captures instead of empty string #1605

merged 2 commits into from
Oct 30, 2014

Conversation

flaviut
Copy link
Contributor

@flaviut flaviut commented Oct 29, 2014

See #1364 for context.

An empty match will return ""
A zero-length match will return nil

Add test cases

Add news information
- tests included
- news.txt updated
Araq added a commit that referenced this pull request Oct 30, 2014
Make re module return nil for unmatched captures instead of empty string
@Araq Araq merged commit e4260dd into nim-lang:bigbreak Oct 30, 2014
@flaviut flaviut deleted the patch-1 branch October 30, 2014 10:37
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.

None yet

2 participants