From 6fbecd00b0dff4e307edbc463052322ead6256e7 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Wed, 31 Jul 2013 13:00:32 -0400 Subject: [PATCH] allow - and space in username --- public/src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/utils.js b/public/src/utils.js index c6465debbe..fc7ed3d73e 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -91,7 +91,7 @@ }, isUserNameValid: function(name) { - return (name && name !== "" && (/^\w{3,14}$/.test(name))); + return (name && name !== "" && (/^[a-zA-Z0-9 _-]{3,14}$/.test(name))); }, isPasswordValid: function(password) {