Skip to content

Commit

Permalink
feat: change pattern matching for planned date syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bytrangle authored and johannesjo committed Feb 18, 2023
1 parent 0f92e30 commit f473586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/features/tasks/short-syntax.util.ts
Expand Up @@ -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 {
Expand All @@ -28,7 +28,7 @@ customDateParser.parsers.push(
},
{
// match today
pattern: () => /^tod| tod/i,
pattern: () => /^tod| @tod/i,
extract: () => {
const today = new Date();
return {
Expand Down

0 comments on commit f473586

Please sign in to comment.