Skip to content

Commit

Permalink
Merge pull request #125 from FireMakeThunder/fix-import-regex-for-hypens
Browse files Browse the repository at this point in the history
Adds hypen to import statement regex
  • Loading branch information
chrishoermann committed Apr 6, 2023
2 parents 61587e1 + 4a5885e commit bb025ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/generator/src/constants/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ export const PRISMA_FUNCTION_TYPES_WITH_VALIDATORS_WHERE_UNIQUE =
// ----------------------------------------

export const IMPORT_STATEMENT_REGEX_PATTERN =
/@zod\.(?<type>[\w]+)(\(\[)(?<imports>[\w "'${}/,;.*]+)(\]\))/;
/@zod\.(?<type>[\w]+)(\(\[)(?<imports>[\w "'${}/,;.*-]+)(\]\))/;

export const IMPORT_STATEMENT_REGEX = /"(?<statement>[\w "'${}/,;.*]+)"/;
export const IMPORT_STATEMENT_REGEX = /"(?<statement>[\w "'${}/,;.*-]+)"/;

0 comments on commit bb025ec

Please sign in to comment.