lonely_coder icon indicating copy to clipboard operation
lonely_coder copied to clipboard

Change regex style to account for no matches

Open andrew-carroll opened this issue 11 years ago • 1 comments

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.

andrew-carroll avatar Dec 07 '14 05:12 andrew-carroll

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

trek avatar Dec 08 '14 15:12 trek