mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
fixing issue where the email check always failed... whoops!
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
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 valid = email.indexOf('@') !== -1 ? true : false;
|
||||
return re.test(email);
|
||||
return valid;
|
||||
},
|
||||
|
||||
isUserNameValid: function(name) {
|
||||
|
||||
Reference in New Issue
Block a user