Merge pull request #2493 from samho2008/patch-20220729

优化 PatternPool 中 TIME 的魔法值,复用 RegexPool 中的常量
This commit is contained in:
Golden Looly
2022-07-29 21:04:46 +08:00
committed by GitHub

View File

@@ -133,7 +133,7 @@ public class PatternPool {
/** /**
* 时间正则 * 时间正则
*/ */
public static final Pattern TIME = Pattern.compile("\\d{1,2}:\\d{1,2}(:\\d{1,2})?"); public static final Pattern TIME = Pattern.compile(RegexPool.TIME);
/** /**
* 中国车牌号码(兼容新能源车牌) * 中国车牌号码(兼容新能源车牌)
*/ */