Commit 24fd824e authored by Ben Wheeler's avatar Ben Wheeler

removed unnecessary underscore

parent a9810b6a
......@@ -9,7 +9,7 @@ module.exports.validateUsernameLocally = username => {
return {valid: false, errMsgId: 'registration.validationUsernameMinLength'};
} else if (username.length > 20) {
return {valid: false, errMsgId: 'registration.validationUsernameMaxLength'};
} else if (!/^[\w_-]+$/i.test(username)) {
} else if (!/^[\w-]+$/i.test(username)) {
return {valid: false, errMsgId: 'registration.validationUsernameRegexp'};
}
return {valid: true};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment