Compare commits

...

5 Commits

Author SHA1 Message Date
ZhanGSKen
73285c8779 <libapputils>Library Release 15.8.6 2025-09-01 07:56:35 +08:00
ZhanGSKen
fa338ec8c7 <apputils>APK 15.8.6 release Publish. 2025-09-01 07:56:11 +08:00
ZhanGSKen
7a3a1f4bcd 添加正则表达式前置预防针工具类 2025-09-01 07:51:20 +08:00
ZhanGSKen
ad991e3da2 <libapputils>Library Release 15.8.5 2025-08-31 23:39:23 +08:00
ZhanGSKen
c0ff228845 <libapputils>Library Release 15.8.5 2025-08-31 04:53:26 +08:00
3 changed files with 40 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Sun Aug 31 04:53:04 CST 2025
stageCount=6
#Mon Sep 01 07:56:33 HKT 2025
stageCount=7
libraryProject=libapputils
baseVersion=15.8
publishVersion=15.8.5
publishVersion=15.8.6
buildCount=0
baseBetaVersion=15.8.6
baseBetaVersion=15.8.7

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Sun Aug 31 04:53:04 CST 2025
stageCount=6
#Mon Sep 01 07:56:11 HKT 2025
stageCount=7
libraryProject=libapputils
baseVersion=15.8
publishVersion=15.8.5
publishVersion=15.8.6
buildCount=0
baseBetaVersion=15.8.6
baseBetaVersion=15.8.7

View File

@@ -0,0 +1,32 @@
package cc.winboll.studio.libapputils.utils;
/**
* @Author ZhanGSKen&豆包大模型<zhangsken@188.com>
* @Date 2025/09/01 07:49
* @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();
}
}