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

[BUGFIX] Use String.match instead of RegExp.test to support g flag #41

Merged
merged 5 commits into from
Jan 19, 2017

Conversation

offirgolan
Copy link
Collaborator

@offirgolan offirgolan commented Dec 22, 2016

Resolves adopted-ember-addons/ember-cp-validations#423.

@stefanpenner what do you think about this change? Are there any edge cases that might break this or will this cause any serious performance issues?

From my research, it looks like RegExp.test is a more optimal solution but it doesnt seem TOO significant.

@offirgolan offirgolan merged commit ab5a645 into master Jan 19, 2017
@offirgolan offirgolan deleted the format-match branch January 19, 2017 06:14
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.

1 participant