RegexPPiUtils 入选 APPUtils 类库。
This commit is contained in:
		| @@ -46,7 +46,7 @@ android { | ||||
| dependencies { | ||||
|     api fileTree(dir: 'libs', include: ['*.jar']) | ||||
|     api 'cc.winboll.studio:libaes:15.9.3' | ||||
|     api 'cc.winboll.studio:libapputils:15.8.5' | ||||
|     api 'cc.winboll.studio:libapputils:15.8.6' | ||||
|     api 'cc.winboll.studio:libappbase:15.9.5' | ||||
|      | ||||
| 	api 'io.github.medyo:android-about-page:2.0.0' | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| #Created by .winboll/winboll_app_build.gradle | ||||
| #Sun Aug 31 06:13:45 CST 2025 | ||||
| #Mon Sep 01 00:02:55 GMT 2025 | ||||
| stageCount=7 | ||||
| libraryProject= | ||||
| baseVersion=15.3 | ||||
| publishVersion=15.3.6 | ||||
| buildCount=0 | ||||
| buildCount=2 | ||||
| baseBetaVersion=15.3.7 | ||||
|   | ||||
| @@ -11,19 +11,19 @@ import android.database.Cursor; | ||||
| import android.net.Uri; | ||||
| import android.provider.ContactsContract; | ||||
| import cc.winboll.studio.libappbase.LogUtils; | ||||
| import cc.winboll.studio.libapputils.utils.RegexPPiUtils; | ||||
| import cc.winboll.studio.mymessagemanager.beans.PhoneBean; | ||||
| import net.sourceforge.pinyin4j.PinyinHelper; | ||||
| import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType; | ||||
| import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat; | ||||
| import net.sourceforge.pinyin4j.format.HanyuPinyinToneType; | ||||
| import net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination; | ||||
|  | ||||
| import java.util.ArrayList; | ||||
| import java.util.Collections; | ||||
| import java.util.Comparator; | ||||
| import java.util.List; | ||||
| import java.util.regex.Matcher; | ||||
| import java.util.regex.Pattern; | ||||
| import net.sourceforge.pinyin4j.PinyinHelper; | ||||
| import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType; | ||||
| import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat; | ||||
| import net.sourceforge.pinyin4j.format.HanyuPinyinToneType; | ||||
| import net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination; | ||||
|  | ||||
| public class PhoneUtil { | ||||
|  | ||||
|   | ||||
| @@ -1,32 +0,0 @@ | ||||
| package cc.winboll.studio.mymessagemanager.utils; | ||||
|  | ||||
| /** | ||||
|  * @Author ZhanGSKen<zhangsken@188.com> | ||||
|  * @Date 2024/12/09 19:00:21 | ||||
|  * @Describe .* 前置预防针 | ||||
|  regex pointer preventive injection | ||||
|  简称 RegexPPi | ||||
|  */ | ||||
| import java.util.regex.Matcher; | ||||
| import java.util.regex.Pattern; | ||||
|  | ||||
| public class RegexPPiUtils { | ||||
|  | ||||
|     public static final String TAG = "RegexPPiUtils"; | ||||
|  | ||||
|     // | ||||
|     // 检验文本是否满足适合正则表达式模式计算 | ||||
|     // | ||||
|     public static boolean isPPiOK(String text) { | ||||
|         //String text = "这里是一些任意的文本内容"; | ||||
|         String regex = ".*"; | ||||
|         Pattern pattern = Pattern.compile(regex); | ||||
|         Matcher matcher = pattern.matcher(text); | ||||
|         /*if (matcher.matches()) { | ||||
|          System.out.println("文本满足该正则表达式模式"); | ||||
|          } else { | ||||
|          System.out.println("文本不满足该正则表达式模式"); | ||||
|          }*/ | ||||
|         return matcher.matches(); | ||||
|     } | ||||
| } | ||||
| @@ -8,6 +8,7 @@ package cc.winboll.studio.mymessagemanager.utils; | ||||
| import android.content.Context; | ||||
| import android.util.JsonReader; | ||||
| import cc.winboll.studio.libappbase.LogUtils; | ||||
| import cc.winboll.studio.libapputils.utils.RegexPPiUtils; | ||||
| import cc.winboll.studio.mymessagemanager.beans.SMSAcceptRuleBean; | ||||
| import cc.winboll.studio.mymessagemanager.beans.SMSAcceptRuleBean_V1; | ||||
| import java.io.IOException; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ZhanGSKen
					ZhanGSKen