Skip to content

Commit

Permalink
Merge pull request #381 from shesha-io/fix/ps/dateTime
Browse files Browse the repository at this point in the history
ammend dateTime
  • Loading branch information
Lukeybooi committed Jul 25, 2023
2 parents fcc1b60 + 0da7903 commit 9fcedff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const getContent = (content: string, { dataType = 'string', dateFormat, n
};

export const formatDateStringAndPrefix = (content: string, dateFormat: string) => {
const regex = /^\s*([\S\s]+?)\s+(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3})/;
const regex = /^\s*([\S\s]+?)\s+(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{1,3})/;
const match = content?.match(regex);

if (match && match?.length > 2) {
Expand Down

0 comments on commit 9fcedff

Please sign in to comment.