公告板
版本库
filestore
活动
搜索
登录
main
/
locations
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
功能完善
admin
2021-11-10
ef43946e123a2e7d4c616e0dc02c89970b71d900
[locations.git]
/
lib
/
utils
/
string_util.dart
1
2
3
4
5
6
7
8
9
class StringUtil {
//是否为电话号码
static bool isMobile(String str) {
return RegExp(
'^((13[0-9])|(15[^4])|(166)|(17[0-8])|(18[0-9])|(19[8-9])|(147,145))\\d{8}\$')
.hasMatch(str);
}
}