Skip to content

Commit

Permalink
fix: date regexp error
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhiter committed Aug 2, 2024
1 parent 3b66c66 commit 84af507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const dateFormatPatterns: Record<string, string> = {
'MM/dd/yyyy': '\\w{2}/\\d{2}/\\d{4}',
MM_dd_yyyy: '\\d{2}_\\d{2}_\\d{4}',

'MMM do,yyyy': '\\w{3} \\w{3,4},\\d{4}',
'MMM do, yyyy': '\\w{3} \\w{3,4},\\d{4}',

'MMMM do,yyyy': '\\w{4,} \\w{3,4},\\d{4}',
'MMMM do, yyyy': '\\w{4,} \\w{3,4},\\d{4}',

'dd-MM-yyyy': '\\d{2}-\\d{2}-\\d{4}',

Expand Down

0 comments on commit 84af507

Please sign in to comment.