Skip to content

Conversation

danielchatfield
Copy link
Contributor

This is the fix to #23. It uses the negative lookahead assertion to prevent matches where On appears twice.

The whitespace matcher after the second on is required to make sure that people with names beginning with 'On' don't trigger it.

@danielchatfield
Copy link
Contributor Author

cc @technoweenie

@technoweenie
Copy link
Contributor

Can you add some test cases?

@danielchatfield
Copy link
Contributor Author

I've not got any ruby experience and I think that is beyond me - the example in #23 is a simple test case but I'm not sure what code would be required to check if it is parsed correctly.

@technoweenie technoweenie merged commit dc9c6af into github:master Aug 25, 2014
@technoweenie
Copy link
Contributor

Ok cool, test case added in ddd7949. Thanks!

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.

2 participants