relax username validation (#413)

this commit allows for matching accented characters, dots, '@' symbol,
and other important things.
This commit is contained in:
Noah Chase
2013-10-19 13:11:28 -04:00
parent 0613b530e8
commit 5945ab1a0a
2 changed files with 13 additions and 1 deletions

View File

@@ -94,7 +94,7 @@
},
isUserNameValid: function(name) {
return (name && name !== "" && (/^[a-zA-Z0-9 _-]+$/.test(name)));
return (name && name !== "" && (/^['"\s\-.*0-9\u00BF-\u1FFF\u2C00-\uD7FF\w]+$/.test(name)));
},
isPasswordValid: function(password) {