Skip to content

Commit

Permalink
Fix Regex parameter error message (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym authored Nov 20, 2023
1 parent 0167a79 commit e344ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class Regex {
constructor(params: RegexParameterType) {
return convertParams(
// @ts-ignore
z.string().regex(params.pattern),
z.string().regex(params.pattern, params.patternError || 'Invalid'),
params
)
}
Expand Down

0 comments on commit e344ba3

Please sign in to comment.