mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
优化 PatternPool 中 TIME 的魔法值,复用 RegexPool 中的常量
This commit is contained in:
parent
630ed4775f
commit
685071cff9
@ -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);
|
||||
/**
|
||||
* 中国车牌号码(兼容新能源车牌)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user