Skip to content

Commit

Permalink
sss
Browse files Browse the repository at this point in the history
  • Loading branch information
hieutksefpt committed May 13, 2020
1 parent 42a6a94 commit 1c1185e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public String isValidText(String text) {
if (text.trim().length() == 0) {
return ValidateMessageCommon.EMPTY;
}
// if (text.matches(".*\\d.*")) {
// return ValidateMessageCommon.HAS_NUMBER;
// }
if (text.matches(".*\\d.*")) {
return ValidateMessageCommon.HAS_NUMBER;
}
if (text.matches(".*[^A-Za-z0-9\\p{L}\\p{M} ].*")) {
return ValidateMessageCommon.HAS_SPECIAL_CHAR;
}
Expand Down

0 comments on commit 1c1185e

Please sign in to comment.