Skip to content

Commit

Permalink
Remove redundant chararcter class declaration in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiGr committed Aug 5, 2021
1 parent e4dfdd0 commit 62ca97e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public final class PatternsCompat {

public static final Pattern EMAIL_ADDRESS
= Pattern.compile(
"[a-zA-Z0-9\\+\\.\\_\\%\\-\\+]{1,256}"
"[a-zA-Z0-9\\.\\_\\%\\-\\+]{1,256}"
+ "\\@"
+ "[a-zA-Z0-9][a-zA-Z0-9\\-]{0,64}"
+ "("
Expand Down

0 comments on commit 62ca97e

Please sign in to comment.