MCPcopy Index your code
hub / github.com/Tencent/APIJSON / isPhone

Method isPhone

APIJSONORM/src/main/java/apijson/StringUtil.java:518–525  ·  view source on GitHub ↗

判断手机格式是否正确 @param phone @return

(String phone)

Source from the content-addressed store, hash-verified

516 * @return
517 */
518 public static boolean isPhone(String phone) {
519 if (isNotEmpty(phone, true) == false) {
520 return false;
521 }
522
523 current = phone;
524 return PATTERN_PHONE.matcher(phone).matches();
525 }
526 /**判断手机格式是否正确
527 * @param s
528 * @return

Callers

nothing calls this directly

Calls 1

isNotEmptyMethod · 0.95

Tested by

no test coverage detected