Skip to content

Commit

Permalink
Fix crash on parseISO import from date-fns v3.x. Fixes #838 (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWeirdDev authored Apr 28, 2024
1 parent b489dc9 commit 5408b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MTableCell/cellUtils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import parseISO from 'date-fns/parseISO';
import { parseISO } from 'date-fns';

/* eslint-disable no-useless-escape */
export const isoDateRegex = /^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;
Expand Down

0 comments on commit 5408b45

Please sign in to comment.