Skip to content

Commit 9b1d9b3

Browse files
committed
手机号码正则改为粗制滥造
1 parent 4010ddd commit 9b1d9b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

androidframework/src/main/java/com/blankj/androidframework/utils/PhoneUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static String getPhoneStatus(Context context) {
9797
}
9898

9999
/**
100-
* 拨打电话
100+
* 跳至填充好phoneNumber的拨号界面
101101
*/
102102
public static void callDial(Context context, String phoneNumber) {
103103
context.startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + phoneNumber)));

androidframework/src/main/java/com/blankj/androidframework/utils/RegularUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ private RegularUtils() {
1515
throw new UnsupportedOperationException("u can't fuck me...");
1616
}
1717

18-
// 验证手机号
19-
private static final String REGEX_MOBILE = "^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$";
18+
// 验证手机号(现在手机号码水太深,来个短小粗暴点了只能)
19+
private static final String REGEX_MOBILE = "^[1]\\d{10}$";
2020
// 验证座机号,正确格式:xxx/xxxx-xxxxxxx/xxxxxxxx
2121
private static final String REGEX_TEL = "^0\\d{2,3}[- ]?\\d{7,8}";
2222
// 验证邮箱

0 commit comments

Comments
 (0)