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

Fix email validation rule #186

Open
timmwille opened this issue Jul 11, 2024 · 0 comments
Open

Fix email validation rule #186

timmwille opened this issue Jul 11, 2024 · 0 comments

Comments

@timmwille
Copy link

I'm not sure it is related or similar to #183 so I wanted to add a fix idea though I'm not a software developer myself, for another project I researched and improved the following regex term to define the proper Mail spectrum:

[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}

I dont know if it can be the basis here, but currently the rule: email does only check until name@domain not for [email protected] so this could be improved to avoid failure.

our current fix we use is adding a pattern (but the output is not so nice):

        - name: email
          id: email
          classes: form-control form-control-lg
          label: Email
          placeholder: Deine EMail-Adresse
          type: email
          validate:
            rule: email
            required: true
            pattern: "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}"

CC @MartinSchott

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

1 participant