From e42bdf3d97cd3f0ddc940fc7e41781a63440eaa7 Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Sat, 26 Mar 2022 19:44:27 +0800 Subject: [PATCH] fix(utils): typo in parse-date (#9391) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(utils): typo in parse-date * fix: add `后日` --- lib/utils/parse-date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/parse-date.js b/lib/utils/parse-date.js index d655942196..5ffcac585c 100644 --- a/lib/utils/parse-date.js +++ b/lib/utils/parse-date.js @@ -49,7 +49,7 @@ const words = [ }, { startAt: dayjs().add(2, 'days'), - regExp: /^(?:(?:后|後)天|(?:the)?d(?:ay)?b(?:eforeyesterda)?y)(.*)/, + regExp: /^(?:(?:后|後)(?:天|日)|(?:the)?d(?:ay)?a(?:fter)?t(?:omrrow)?)(.*)/, }, ];