Skip to content

Commit

Permalink
Fix crash on parseISO import from date-fns v3.x. Fixes material-table…
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWeirdDev committed Apr 25, 2024
1 parent b489dc9 commit 606bd3f
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 606bd3f

Please sign in to comment.