File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
androidframework/src/main/java/com/blankj/androidframework/utils Expand file tree Collapse file tree 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) {
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 )));
Original file line number Diff line number Diff 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 // 验证邮箱
You can’t perform that action at this time.
0 commit comments