瀏覽代碼

fix: allow nlp days to be entered for past week

Today is Wednesday. Normally 'Last Monday' would refer to the monday
of this week. This nlp library interprets it to mean monday from the
previous week. In order for users to have this ability, let's introduce
a 'This' qualifier so users can enter days of the week that are already
behind them. Added this elsewhere for consistency
Gabriel Horner 1 年之前
父節點
當前提交
5fc3c7453a
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      src/main/frontend/date.cljs

+ 10 - 0
src/main/frontend/date.cljs

@@ -184,10 +184,13 @@
    "Tomorrow"
    "Yesterday"
    "Next week"
+   "This week"
    "Last week"
    "Next month"
+   "This month"
    "Last month"
    "Next year"
+   "This year"
    "Last year"
    "Last Monday"
    "Last Tuesday"
@@ -196,6 +199,13 @@
    "Last Friday"
    "Last Saturday"
    "Last Sunday"
+   "This Monday"
+   "This Tuesday"
+   "This Wednesday"
+   "This Thursday"
+   "This Friday"
+   "This Saturday"
+   "This Sunday"
    "Next Monday"
    "Next Tuesday"
    "Next Wednesday"