We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1eae7e3 + 2e6b6f3 commit 77d3c8aCopy full SHA for 77d3c8a
1 file changed
Client-Side Components/Client Scripts/Validate Email Format/ValidateEmailFormat.js
@@ -2,7 +2,7 @@
2
3
function onSubmit() {
4
var emailField = g_form.getValue('email');
5
- var emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
+ var emailPattern = /^(([^<>()\[\]\\.,;:\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,}))$/;
6
7
if (!emailPattern.test(emailField)) {
8
g_form.addErrorMessage('Please enter a valid email address.');
0 commit comments