We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bff66f commit 0ea279bCopy full SHA for 0ea279b
src/decorator/string/IsBase64.ts
@@ -26,7 +26,7 @@ export function IsBase64(
26
name: IS_BASE64,
27
constraints: [options],
28
validator: {
29
- validate: (value, args): boolean => isBase64(value, options),
+ validate: (value, args): boolean => isBase64(value, args?.constraints[0]),
30
defaultMessage: buildMessage(eachPrefix => eachPrefix + '$property must be base64 encoded', validationOptions),
31
},
32
0 commit comments