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

text field's patterns (url and email) are never matched #1819

Closed
eduardomart opened this issue Sep 3, 2020 · 2 comments · Fixed by #1828
Closed

text field's patterns (url and email) are never matched #1819

eduardomart opened this issue Sep 3, 2020 · 2 comments · Fixed by #1828
Assignees

Comments

@eduardomart
Copy link
Contributor

myfield:
   type: text
   pattern: url 
  # pattern: email <-- also doesn't work

Both patterns url or email are not working, when used the pattern is never matched

Example:
Screen Shot 2020-09-02 at 4 55 18 PM

However it does seem that regular expressions work

@I-Valchev
Copy link
Member

I-Valchev commented Sep 3, 2020

hi @eduardomart, the pattern should be an actual regular expression. In that case, it matches "url" and "email" literally.

@eduardomart
Copy link
Contributor Author

Okay, so it is not meant to work as it did in v3 and/or is described in the docs?

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 a pull request may close this issue.

2 participants