Skip to content

Commit 0fed8dd

Browse files
hakimioNoNameProvided
authored andcommitted
fix: passing options to "IsDateString()" decorator
1 parent c183cb3 commit 0fed8dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decorator/string/IsDateString.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function IsDateString(
2424
name: IS_DATE_STRING,
2525
constraints: [options],
2626
validator: {
27-
validate: (value, args): boolean => isDateString(value),
27+
validate: (value): boolean => isDateString(value, options),
2828
defaultMessage: buildMessage(
2929
eachPrefix => eachPrefix + '$property must be a valid ISO 8601 date string',
3030
validationOptions

0 commit comments

Comments
 (0)