mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-25 20:29:45 -04:00
removed unnecessary underscore
This commit is contained in:
parent
a9810b6a1f
commit
24fd824e72
1 changed files with 1 additions and 1 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Reference in a new issue