Больше нельзя устанавливать ники, содержащие в себе #

This commit is contained in:
ErickSkrauch
2016-11-04 19:35:33 +03:00
parent d3a2a37f11
commit 2b0023e13f
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ class UsernameValidator extends Validator {
$length->tooShort = E::USERNAME_TOO_SHORT;
$length->tooLong = E::USERNAME_TOO_LONG;
$pattern = new validators\RegularExpressionValidator(['pattern' => '/^[\p{L}\d-_\.!?#$%^&*()\[\]:;]+$/u']);
$pattern = new validators\RegularExpressionValidator(['pattern' => '/^[\p{L}\d-_\.!?$%^&*()\[\]:;]+$/u']);
$pattern->message = E::USERNAME_INVALID;
$unique = new validators\UniqueValidator();