Skip to content

Make reply header regexp even less greedy #31

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

Merged
merged 1 commit into from
Aug 25, 2014

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