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

Stricter @regex matcher #5700

Closed
wants to merge 1 commit into from
Closed

Conversation

oscardelben
Copy link
Contributor

The purpose of this regex is to match prefix + method + suffix. By using + instead of * we ensure that we only match strings where method is not blank.

The purpose of this regex is to match prefix + method + suffix. By using + instead of * we ensure that we only match strings where method is not blank.
@carlosantoniodasilva
Copy link
Member

/cc @jonleighton

@jonleighton
Copy link
Member

Seems fine. Please add a unit test though.

@oscardelben
Copy link
Contributor Author

Will do

@oscardelben
Copy link
Contributor Author

This doesn't seem to be necessary other than for making the regexp more correct, so I'm going to close it.

@oscardelben oscardelben closed this May 5, 2012
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

3 participants