File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
CommonUtil/src/main/java/com/jingewenku/abrahamcaijin/commonutil Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public class AppValidationMgr {
31
31
private final static Pattern email_pattern = Pattern .compile ("^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\ .[a-zA-Z0-9_-]+)+$" );
32
32
33
33
//手机号表达式
34
- private final static Pattern phone_pattern = Pattern .compile ("^(13|15|18) \\ d{9 }$" );
34
+ private final static Pattern phone_pattern = Pattern .compile ("^((13[0-9])|(15[^4])|(18[0-9])|(17[0-8])|(147,145)) \\ d{8 }$" );
35
35
36
36
//银行卡号表达式
37
37
private final static Pattern bankNo_pattern = Pattern .compile ("^[0-9]{16,19}$" );
Original file line number Diff line number Diff line change 638
638
doGetAsyn : 异步的Get请求
639
639
doPostAsyn: 异步的Post请求
640
640
doGet : Get请求,获得返回数据
641
- doPost : 向指定 URL 发送POST方法的请求
641
+ doPost : 向指定 URL 发送POST方法的请求
642
+
642
643
## 字符串判断工具类 → [ AppStringUtils] ( https://github.com/AbrahamCaiJin/CommonUtilLibrary/blob/master/CommonUtil/src/main/java/com/jingewenku/abrahamcaijin/commonutil/AppStringUtils.java )
643
644
isEmpty : 判断字符串是否为空
644
645
isNotEmpty : 判断str null,"","null" 均视为空
708
709
addShortcut : 为程序创建桌面快捷方式
709
710
delShortcut : 删除程序的快捷方式
710
711
## 单例工具类 → [ SingletonUtils] ( )
712
+ getInstance : 获取单例
711
713
getInstance : 获取单例
712
714
## WebView管理类 → [ WebViewManager] ( )
713
715
enableAdaptive : 开启自适应功能
796
798
sha1 : 字符串sha1值
797
799
798
800
## About
801
+ 这里把开发中常用的一些工具类做一个整理,主要用到的时候不用再费力的百度或者Google了,大家有需要的可以随时借鉴走,同时也希望这个越来越强大,有什么错误的地方还希望各位不吝指出,让我得以完善,当然,在此声明,这些并不是我一个人,也用了许多前辈们的东西,这里一并感谢,目前还在测试,还没有上传到Jcenter,需要的自己拷贝,测试完成后会给大家贴出引用地址的,持续更新中。对你有用就给一个Start吧!</br ></br >
802
+ [ ![ Travis branch] ( https://img.shields.io/badge/Github-Abraham-ff69b4.svg )] ( https://github.com/AbrahamCaiJin )
803
+ [ ![ Travis] ( https://img.shields.io/badge/简书-Abraham-blue.svg )] ( http://www.jianshu.com/u/8a0908d85e0a )
804
+ [ ![ CircleCI] ( https://img.shields.io/badge/Blog-Abraham-brightgreen.svg )] ( http://blog.csdn.net/u014727709?viewmode=contents )
805
+ [ ![ TeamCity (simple build status)] ( https://img.shields.io/badge/Weibo-Abraham%20-lightgrey.svg )] ( http://weibo.com/p/1005053895373916/home?from=page_100505&mod=TAB&is_all=1#place )
806
+ [ ![ Travis] ( https://img.shields.io/badge/QQ群-523167548%20-ff69b4.svg )] ( https://shang.qq.com/wpa/qunwpa?idkey=4898a63b0283bc98cc61daeeb9eb6648a34886cf554a3ec272063ef5d999b012 )
799
807
&ensp ;&ensp ;&ensp ;&ensp ; 这里把开发中常用的一些工具类做一个整理,主要用到的时候不用再费力的百度或者Google了,大家有需要的可以随时借鉴走,同时也希望这个越来越强大,有什么错误的地方还希望各位不吝指出,让我得以完善,当然,在此声明,这些并不是我一个人,也用了许多前辈们的东西,这里一并感谢,目前还在测试,持续更新中。对你有用就给一个Start吧!</br ></br >
800
808
#
801
809
[ ![ Travis branch] ( https://img.shields.io/badge/Github-Abraham-ff69b4.svg )] ( https://github.com/AbrahamCaiJin )
808
816
Gradle:
809
817
``` groovy
810
818
compile 'com.abrahamcaijin.commonutil:CommonUtil:1.0.1'
819
+
811
820
```
812
821
Maven:
813
822
``` groovy
You can’t perform that action at this time.
0 commit comments