From a90dc10818477c074e0886f65e9185da782e19f6 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sun, 4 Oct 2020 23:36:44 +0300 Subject: [PATCH] Allow using underscores and hyphens in new account's usernames --- src/views/users/components/NewAccountDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/users/components/NewAccountDialog.vue b/src/views/users/components/NewAccountDialog.vue index 5b32985d..b25abd5c 100644 --- a/src/views/users/components/NewAccountDialog.vue +++ b/src/views/users/components/NewAccountDialog.vue @@ -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) } }