summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/components
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2018-04-09 01:10:04 +0900
committerunarist <m.unarist@gmail.com>2018-04-09 01:52:41 +0900
commit3c4235067f2ff1f8057080482559a8015f0492c6 (patch)
tree8ed49d9d10af0e7f9f70b27cb7dfb6f0173b0d4a /src/client/app/common/views/components
parentMerge pull request #1420 from unarist/fix/banner-selection (diff)
downloadmisskey-3c4235067f2ff1f8057080482559a8015f0492c6.tar.gz
misskey-3c4235067f2ff1f8057080482559a8015f0492c6.tar.bz2
misskey-3c4235067f2ff1f8057080482559a8015f0492c6.zip
Fix username/mention regexes
* Allow underscore instead of hypen * Fix domain part handling * Add tests for remote mention
Diffstat (limited to 'src/client/app/common/views/components')
-rw-r--r--src/client/app/common/views/components/signup.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/signup.vue b/src/client/app/common/views/components/signup.vue
index e77d849ade..8d0b16cabd 100644
--- a/src/client/app/common/views/components/signup.vue
+++ b/src/client/app/common/views/components/signup.vue
@@ -76,7 +76,7 @@ export default Vue.extend({
}
const err =
- !this.username.match(/^[a-zA-Z0-9\-]+$/) ? 'invalid-format' :
+ !this.username.match(/^[a-zA-Z0-9_]+$/) ? 'invalid-format' :
this.username.length < 3 ? 'min-range' :
this.username.length > 20 ? 'max-range' :
null;