judgegem/judge

Judge validator format does not work correct with some regex?

Closed this issue · 2 comments

/^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$/i is a rub regex for simple mail format validation.

Judge will fail the test for an emal like "anemail@adomain.com" without the quotes. I believe the problem is in the /i part of the regex not been correctly transformed by judge into a case insensitive/insensitive modifyer for javascript.

You need to use regexes that are compatible with JS too.
I also run into this kind of issues.

#25

I thought there was some ruby to javascript regex converter embedded in the gem. Thanks! Im closing the issue leaving the reference to #25