diff --git a/src/main/java/capstone/lip/landinformationportal/business/validation/StringValidation.java b/src/main/java/capstone/lip/landinformationportal/business/validation/StringValidation.java index 7cbac28..e3f4234 100644 --- a/src/main/java/capstone/lip/landinformationportal/business/validation/StringValidation.java +++ b/src/main/java/capstone/lip/landinformationportal/business/validation/StringValidation.java @@ -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; }