Skip to content

Commit f53de33

Browse files
committed
fix(normCheckKeyword) bug for NOON
1 parent 23f3c11 commit f53de33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

time_unit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ func (t *TimeUnit) china24St(year int, chinaSt string) []int {
10141014
return []int{solarTerms[chinaSt].Month, flagDay}
10151015
}
10161016

1017-
// normCheckKeywor 对关键字:早(包含早上/早晨/早间),上午,中午,午间,下午,午后,晚上,傍晚,晚间,晚,pm,PM的正确时间计算
1017+
// normCheckKeyword 对关键字:早(包含早上/早晨/早间),上午,中午,午间,下午,午后,晚上,傍晚,晚间,晚,pm,PM的正确时间计算
10181018
// 规约:
10191019
// 1. 中午/午间0-10点视为12-22点
10201020
// 2. 下午/午后0-11点视为12-23点
@@ -1048,7 +1048,7 @@ func (t *TimeUnit) calcNormCheckKeyword(reg string, timepoint RangeTimeEnum) {
10481048
if !matched {
10491049
return
10501050
}
1051-
if timepoint == DAY_BREAK || timepoint == EARLY_MORNING || timepoint == MORNING || timepoint == NOON {
1051+
if timepoint == DAY_BREAK || timepoint == EARLY_MORNING || timepoint == MORNING {
10521052
t.isMorning = true
10531053
if t.tp[3] == -1 {
10541054
// 增加对没有明确时间点,只写了“凌晨”这种情况的处理

0 commit comments

Comments
 (0)