File tree 2 files changed +3
-3
lines changed
androidframework/src/main/java/com/blankj/androidframework/utils
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public static String getPhoneStatus(Context context) {
97
97
}
98
98
99
99
/**
100
- * 拨打电话
100
+ * 跳至填充好phoneNumber的拨号界面
101
101
*/
102
102
public static void callDial (Context context , String phoneNumber ) {
103
103
context .startActivity (new Intent (Intent .ACTION_DIAL , Uri .parse ("tel:" + phoneNumber )));
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ private RegularUtils() {
15
15
throw new UnsupportedOperationException ("u can't fuck me..." );
16
16
}
17
17
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 }$" ;
20
20
// 验证座机号,正确格式:xxx/xxxx-xxxxxxx/xxxxxxxx
21
21
private static final String REGEX_TEL = "^0\\ d{2,3}[- ]?\\ d{7,8}" ;
22
22
// 验证邮箱
You can’t perform that action at this time.
0 commit comments