Allow using underscores and hyphens in new account's usernames

This commit is contained in:
Angelina Filippova 2020-10-04 23:36:44 +03:00
parent dcfee0f5de
commit a90dc10818

View file

@ -122,7 +122,7 @@ export default {
return re.test(email)
},
validNickname(nickname) {
var re = /^[a-zA-Z\d]+$/
var re = /^[a-zA-Z\d_-]+$/
return re.test(nickname)
}
}