Browse Source

mobile phone need 11 number

pull/2/head
lilin 5 years ago
parent
commit
6bec773792
  1. 2
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/utils/CheckUtils.java

2
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/utils/CheckUtils.java

@ -104,7 +104,7 @@ public class CheckUtils {
* @return true if phone regex valid, otherwise return false * @return true if phone regex valid, otherwise return false
*/ */
public static boolean checkPhone(String phone) { public static boolean checkPhone(String phone) {
return StringUtils.isEmpty(phone) || phone.length() <= 11; return StringUtils.isEmpty(phone) || phone.length() == 11;
} }

Loading…
Cancel
Save