mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
fixing issue where the email check always failed... whoops!
This commit is contained in:
@@ -87,7 +87,7 @@
|
|||||||
isEmailValid: function(email) {
|
isEmailValid: function(email) {
|
||||||
// var re = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;
|
// var re = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;
|
||||||
var valid = email.indexOf('@') !== -1 ? true : false;
|
var valid = email.indexOf('@') !== -1 ? true : false;
|
||||||
return re.test(email);
|
return valid;
|
||||||
},
|
},
|
||||||
|
|
||||||
isUserNameValid: function(name) {
|
isUserNameValid: function(name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user