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

refactor(utils) replace String.match with RegExp.test #156

Merged
merged 1 commit into from
Jun 27, 2017
Merged

refactor(utils) replace String.match with RegExp.test #156

merged 1 commit into from
Jun 27, 2017

Conversation

flootr
Copy link
Contributor

@flootr flootr commented Jun 27, 2017

This PR is a follow up to #153 (comment).

In some browsers RegExp.prototype.test is faster than String.prototype.match, especially if you only want to test if the regex matches the string and you are not interested in the actual matches.

@gr2m not sure if this PR is opened on the correct branch, please tell me if I need to correct something.

@gr2m gr2m merged commit baf2205 into hoodiehq:hoodiehq/camp#121 Jun 27, 2017
@gr2m
Copy link
Member

gr2m commented Jun 27, 2017

perfect 👌

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