Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Change regex style to account for no matches #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Change regex style to account for no matches #11

wants to merge 1 commit into from

Conversation

andrew-carroll
Copy link

Fixes Issue #5 . Old code would sometime not match anything, and match annoyingly returns nil when there are no matches. The alternate regex matching syntax, featured in the new commit, is more forgiving, returning instead an empty set.

@trek
Copy link
Owner

trek commented Dec 8, 2014

Can you add a spec for the cases where this helps?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants