-
Notifications
You must be signed in to change notification settings - Fork 44
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
RegEx of Pattern attribute #1
Comments
I'm so sorry, but it's no clear to me what you're trying to say. Have you tested it? The demo page uses on-page |
I'm sorry, mister. My bad. I think, despite you have give up on using the native API, the validation has to be the same. From the specification:
Which makes the There's still the case of the
I can submit a pull request, if you want to. |
Ah yes, I see what you mean. I... I suck at regex! Yes, a pull request would be AWESOME, thank you! |
@cferdinandi , may I add the lock and changelog files? |
No thanks. I use tags for changelog. |
Wow, I wasn't talking about the release, but something to help others of analyze the changes in the future. It can be useful. Pull request submitted! |
Fixed with v1.0.3. thanks for this, @robsonsobral ! |
Hi!
Do you forgive me for not submit a test case? This is a matter of documentation.
The native validation of the
pattern
attribute modifies its value a little, before test it.Shouldn't it be something like
'^(?:' + field.getAttribute('pattern') + ')$'
to respect the same rules?I'm sorry for being the first annoying guy to open an issue.
The text was updated successfully, but these errors were encountered: