Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Update username regular expression:
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jun 1, 2015
1 parent bcd1897 commit e3f4ed7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -91,7 +91,7 @@ public void setUsername(String username) {

@NotEmpty
@Size(min = 3, max = 20)
@Pattern(regexp = "^[a-z\\d_]{3,20}$",
@Pattern(regexp = "^([a-z\\d][a-z\\d_]*){3,20}$",
message = "{validation.username.constraints}")
public String getUsername() {
return username;
Expand Down

0 comments on commit e3f4ed7

Please sign in to comment.