Skip to content

Conversation

@mrazicz
Copy link
Contributor

@mrazicz mrazicz commented Mar 18, 2017

Hi,

I just ran into issue with matchRegexp validation. So I fixed it, and here is a pull request. Hope you will like it and will be merged into master.

@NewOldMax
Copy link
Owner

Hi, @mrazicz
Thanks for your PR :) What kind of issue you get?
And can you run eslint for your code? 😄

@mrazicz
Copy link
Contributor Author

mrazicz commented Mar 18, 2017

Hi,

match Regexp does not work at all.

validators: ["matchRegexp:^[0-9]{8}$"]

Internally you split that validator by ":" and then you pass "^[0-9]{8}$" directly to matchRegexp function as String. But string doesn't have method test() so it fails.

Eslint - sure. I'm kind of new to React and javascript, so I don't know about these features :)

@mrazicz
Copy link
Contributor Author

mrazicz commented Mar 18, 2017

Here it is. Eslint output is empty now :)

@NewOldMax NewOldMax merged commit 9530192 into NewOldMax:master Mar 20, 2017
@NewOldMax
Copy link
Owner

All fine, 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