Skip to content

Commit

Permalink
time: 支持"下一个15号"
Browse files Browse the repository at this point in the history
  • Loading branch information
du00cs committed Nov 19, 2024
1 parent 1abfe94 commit 2ed850e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ trait Rules extends DimRules {
pattern = List(
"((这|今|本(?!现在))一?个?|明|上+一?个?|前一个?|(?<![一|查|看|搜|记|问|写])下+一?个?)".regex,
// ❌ 下周一早上 => 下[周一早上]
and(isDimension(Time), not(isAPartOfDay)).predicate
and(isDimension(Time), not(isAPartOfDay), not(isHint(FinalRule))).predicate
),
prod = tokens {
case Token(RegexMatch, GroupMatch(s :: _)) :: (t @ Token(Time, td: TimeData)) :: _ =>
Expand Down

0 comments on commit 2ed850e

Please sign in to comment.