|
|
@@ -42,7 +42,7 @@ public abstract class StringUtils extends org.springframework.util.StringUtils {
|
|
|
|
|
|
private final static Pattern BLANK_PATTERN = Pattern.compile("\\s*|\t|\r|\n");
|
|
|
|
|
|
- private final static Pattern MOBILE_PATTERN = Pattern.compile("^[1|8][3-9]\\d{9}$|^([6|9])\\d{7}$|^[0][9]\\d{8}$|^[6]([8|6])\\d{5}$|^(886|0)[9]\\d{8}$");
|
|
|
+ private final static Pattern MOBILE_PATTERN = Pattern.compile("^[1|8][3-9]\\d{9}$|^([6|9])\\d{7}$|^[0][9]\\d{8}$|^[6]([8|6])\\d{5}$|^(886|00886|0)[9]\\d{8}$");
|
|
|
|
|
|
private final static Pattern EMAIL_PATTERN = Pattern.compile("^([\\w-])+(\\.\\w+)*@([\\w-])+((\\.\\w{2,3}){1,3})$");
|
|
|
|
|
|
@@ -77,7 +77,7 @@ public abstract class StringUtils extends org.springframework.util.StringUtils {
|
|
|
logger.warn("ignore invalid mobile " + mobile);
|
|
|
mobile = null;
|
|
|
} else {
|
|
|
- if (mobile.startsWith("852") || mobile.startsWith("853") || mobile.startsWith("886")) {
|
|
|
+ if (mobile.startsWith("852") || mobile.startsWith("853") || mobile.startsWith("886") || mobile.startsWith("886")) {
|
|
|
// 香港区号、澳门地区、台湾地区
|
|
|
mobile = "00" + mobile;
|
|
|
}
|