mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
[0] is shorter than [0,1] :)
This commit is contained in:
parent
ea307931a7
commit
2ef53f89f4
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class UsernameValidator
|
|||
|
||||
def username_first_char_valid?
|
||||
return unless errors.empty?
|
||||
if username[0,1] =~ /[^A-Za-z0-9]/
|
||||
if username[0] =~ /[^A-Za-z0-9]/
|
||||
self.errors << I18n.t(:'user.username.must_begin_with_alphanumeric')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue