mirror of
https://github.com/sharevb/it-tools.git
synced 2026-12-02 09:42:10 +03:00
fix(date time converter): fix .net ticks matcher
This commit is contained in:
1 parent
699450c458
commit
c92e8b14d8
1 file changed
+1
-1
@@ -139,7 +139,7 @@ const formats: DateFormat[] = [
|
||||
name: '.Net ticks',
|
||||
fromDate: (date) => ticksFromDate(date),
|
||||
toDate: (date) => ticksToDate(date) || new Date(),
|
||||
formatMatcher: (date) => /\d+/.test(date || ''),
|
||||
formatMatcher: (date) => /^\d+$/.test(date || ''),
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user