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

Change contact_email validation to allow only one email #2380

Open
celestemartinez opened this issue Oct 15, 2024 · 2 comments · May be fixed by #2382
Open

Change contact_email validation to allow only one email #2380

celestemartinez opened this issue Oct 15, 2024 · 2 comments · May be fixed by #2382

Comments

@celestemartinez
Copy link
Member

No description provided.

@celestemartinez
Copy link
Member Author

We are currently using:

'value-regex': r'([a-z0-9_-.]{2,}@[a-z0-9_-.]{2,}.[a-z]{2,},){0,}([a-z0-9_-.]{2,}@[a-z0-9_-.]{2,}.[a-z]{2,})',

I am trying to use this regex instead:

"value-regex": "([a-z0-9_\-\.]{2,}@[a-z0-9_\-\.]{2,}\.[a-z]{2,})",

but I get the following error when trying to add multiple emails: contact_email does not meet requirements. It cannot be shorter than 2 characters.

@carlosmondra you know which regex I should be using?

@carlosmondra
Copy link
Member

Since this is API 1, I would add it to the regexTranslations.js file. Let me know if you need help with it.

@celestemartinez celestemartinez linked a pull request Oct 16, 2024 that will close this issue
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