Skip to content

Commit

Permalink
Merge pull request #12 from lpsinger/omit-inferred-types
Browse files Browse the repository at this point in the history
Omit inferred types
  • Loading branch information
dakota002 committed Sep 12, 2023
2 parents 3afc9ec + 267197d commit 497dd74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ const visitorSpecs: VisitorSpec[] = [
type: 'datetime',
pattern:
/(\d{4}-\d{2}-\d{2})(?:[ T](\d{2}(?::\d{2}(?::\d{2}(?:\.\d+)?)?))?)?Z?/,
replacement: (_: string, date: string, time?: string) =>
time ? `${date}T${time}Z` : `${date}Z`,
replacement: (_, date, time) => (time ? `${date}T${time}Z` : `${date}Z`),
},
]

Expand Down

0 comments on commit 497dd74

Please sign in to comment.