ユーザー名の少なくとも3文字以上という制限を撤廃できていなかった

This commit is contained in:
tamaina 2018-04-11 21:05:47 +09:00 committed by GitHub
parent 2a2bc2556c
commit faf738d4cb

View file

@ -77,7 +77,7 @@ export default Vue.extend({
const err =
!this.username.match(/^[a-zA-Z0-9_]+$/) ? 'invalid-format' :
this.username.length < 3 ? 'min-range' :
this.username.length < 1 ? 'min-range' :
this.username.length > 20 ? 'max-range' :
null;