Skip to content

Commit

Permalink
escape dot in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil authored Feb 14, 2021
1 parent a42aa0a commit 201f6b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class ContractInput {
* Contributor username.
*/
@NotBlank(message = "Contributor's username is mandatory!")
@Pattern(regexp = "^[a-zA-Z0-9-_.]{1,256}$")
@Pattern(regexp = "^[a-zA-Z0-9-_\\.]{1,256}$")
private String username;

/**
Expand Down

0 comments on commit 201f6b2

Please sign in to comment.