Skip to content

Node.js based forum software built for the modern web

allow - and space in username

Baris Soner Usakli6fbecd00b0df
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) {