From f473586dd4092072f4fe55a3ce64a958db26fff1 Mon Sep 17 00:00:00 2001 From: Trang Le Date: Thu, 8 Dec 2022 18:06:57 +0700 Subject: [PATCH] feat: change pattern matching for planned date syntax --- src/app/features/tasks/short-syntax.util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/features/tasks/short-syntax.util.ts b/src/app/features/tasks/short-syntax.util.ts index 634a67ca791..1c47f652a67 100644 --- a/src/app/features/tasks/short-syntax.util.ts +++ b/src/app/features/tasks/short-syntax.util.ts @@ -18,7 +18,7 @@ const customDateParser = chrono.casual.clone(); customDateParser.parsers.push( { // match tomorrow - pattern: () => /^tom| tom/i, + pattern: () => /^tom| @tom/i, extract: () => { const today = new Date(); return { @@ -28,7 +28,7 @@ customDateParser.parsers.push( }, { // match today - pattern: () => /^tod| tod/i, + pattern: () => /^tod| @tod/i, extract: () => { const today = new Date(); return {