Skip to content

Commit

Permalink
Fix unicode unrecognized
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizeta committed Jun 14, 2017
1 parent 83eb45b commit 0960644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Validator/UserValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function getRules()
return [
'username' => [
'required',
'regex:/^[\x{4e00}-\x{9fa5}a-z0-9_-]+$/i',
'regex:/^[\x{4e00}-\x{9fa5}a-z0-9_-]+$/ui',
'unique:users,username'.$idSuffix,
'min:1',
'max:20'
Expand Down

0 comments on commit 0960644

Please sign in to comment.