Skip to content

Commit

Permalink
Fix typo as observed in typestack#1713
Browse files Browse the repository at this point in the history
  • Loading branch information
jotamorais committed Oct 7, 2022
1 parent ebc0dcf commit 0e8c191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorator/string/IsUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function IsUrl(options?: ValidatorJS.IsURLOptions, validationOptions?: Va
constraints: [options],
validator: {
validate: (value, args): boolean => isURL(value, args?.constraints[0]),
defaultMessage: buildMessage(eachPrefix => eachPrefix + '$property must be an URL address', validationOptions),
defaultMessage: buildMessage(eachPrefix => eachPrefix + '$property must be a URL address', validationOptions),
},
},
validationOptions
Expand Down

0 comments on commit 0e8c191

Please sign in to comment.