We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9871371 commit ccbb0ddCopy full SHA for ccbb0dd
src/decorator/string/IsIPRange.ts
@@ -26,7 +26,7 @@ export function IsIPRange(version?: IsIpRangeVersion, validationOptions?: Valida
26
name: IS_IP_RANGE,
27
constraints: [version],
28
validator: {
29
- validate: (value, args): boolean => isIP(value, args?.constraints[0]),
+ validate: (value, args): boolean => isIPRange(value, args?.constraints[0]),
30
defaultMessage: buildMessage(eachPrefix => eachPrefix + '$property must be an ip range', validationOptions),
31
},
32
0 commit comments