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

Email input validator pattern #22

Open
FranciscoValdesoiro opened this issue Feb 5, 2021 · 1 comment
Open

Email input validator pattern #22

FranciscoValdesoiro opened this issue Feb 5, 2021 · 1 comment

Comments

@FranciscoValdesoiro
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We need to apply pattern validators

@kuhlaid
Copy link

kuhlaid commented Nov 17, 2021

The current email pattern /^(([^<>()[]\\\\.,;:s@\\\"]+(.[^<>()[]\\\\.,;:s@\\\"]+)*)|(\\\".+\\\"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/ in the example does not work for email addresses. Try entering a valid email at https://regex101.com/ using this pattern and it does not match. Try regex pattern /\S+@\S+\.\S+/ instead. In the JSON form template it would need to be escaped like the following.

        "registerConfig": {
          "required": true,
          "pattern": "/\\S+@\\S+\\.\\S+/"
        }

The regex patterns within the form template do not seem to be working currently. (I tried cloning the repository and setting up the development server locally but kept running into errors trying to get the examples to run, so I'm not sure what is going on with that.)

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

No branches or pull requests

2 participants