While not the most elegant solution, I'm only really interested in
stopping registrations that contain two emails in one field.

The only separators I know of are the comma and semicolon. If
there are more, please let me know.
v1.18.x
Julian Lam 7 years ago
parent b79cd93a49
commit f97b64a0c6

@ -387,7 +387,7 @@
},
isEmailValid: function (email) {
return typeof email === 'string' && email.length && email.indexOf('@') !== -1;
return typeof email === 'string' && email.length && email.indexOf('@') !== -1 && email.indexOf(',') === -1 && email.indexOf(';') === -1;
},
isUserNameValid: function (name) {

Loading…
Cancel
Save