mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix pattern bug
This commit is contained in:
parent
417702f9fc
commit
39a2ee1a47
@ -19,6 +19,7 @@
|
||||
* 【all】 修复阶乘计算错误bug(issue#I12XE4@Gitee)
|
||||
* 【http】 修复disableCookie无效问题(issue#572@Github)
|
||||
* 【http】 修复HttpResponse.getCookies导致的问题(issue#572@Github)
|
||||
* 【cron】 修复年无效匹配错误问题(pr#578@Github)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -289,7 +289,7 @@ public class CronPattern {
|
||||
throw new CronException(e, "Invalid pattern [{}], parsing 'year' field error!", pattern);
|
||||
}
|
||||
} else {// 不支持年的表达式,全部匹配
|
||||
this.secondMatchers.add(new AlwaysTrueValueMatcher());
|
||||
this.yearMatchers.add(new AlwaysTrueValueMatcher());
|
||||
}
|
||||
matcherSize++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user