Skip to content

Commit 4e4991e

Browse files
author
Gizeta
committed
Merge branch 'develop'
2 parents f802d6f + 0960644 commit 4e4991e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
},
7575
"extra": {
7676
"branch-alias": {
77-
"dev-master": "0.1.x-dev"
77+
"dev-master": "0.1.x-dev",
78+
"dev-develop": "0.1.x-dev"
7879
}
7980
}
8081
}

src/Core/Validator/UserValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ protected function getRules()
4646
return [
4747
'username' => [
4848
'required',
49-
'regex:/^[a-z0-9_-]+$/i',
49+
'regex:/^[\x{4e00}-\x{9fa5}a-z0-9_-]+$/ui',
5050
'unique:users,username'.$idSuffix,
51-
'min:3',
52-
'max:30'
51+
'min:1',
52+
'max:20'
5353
],
5454
'email' => [
5555
'required',

0 commit comments

Comments
 (0)