Skip to content

Commit ccbb0dd

Browse files
author
Ballinette
committed
fix function name (thx. @villelahdenvuo)
1 parent 9871371 commit ccbb0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decorator/string/IsIPRange.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function IsIPRange(version?: IsIpRangeVersion, validationOptions?: Valida
2626
name: IS_IP_RANGE,
2727
constraints: [version],
2828
validator: {
29-
validate: (value, args): boolean => isIP(value, args?.constraints[0]),
29+
validate: (value, args): boolean => isIPRange(value, args?.constraints[0]),
3030
defaultMessage: buildMessage(eachPrefix => eachPrefix + '$property must be an ip range', validationOptions),
3131
},
3232
},

0 commit comments

Comments
 (0)