mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
fixed a bug that made topics invisible to users, also closes #47
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
// from http://stackoverflow.com/questions/46155/validate-email-address-in-javascript
|
||||
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])?/;
|
||||
return re.test(email);
|
||||
return re.test(email);
|
||||
},
|
||||
|
||||
isUserNameValid: function(name) {
|
||||
|
||||
Reference in New Issue
Block a user