Skip to content

Commit 0ea279b

Browse files
authored
fix: pass arguments correctly to isBase64 (#2574)
* fix: update version in package-lock.json * fix: pass options to isBase64 correctly
1 parent 3bff66f commit 0ea279b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decorator/string/IsBase64.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function IsBase64(
2626
name: IS_BASE64,
2727
constraints: [options],
2828
validator: {
29-
validate: (value, args): boolean => isBase64(value, options),
29+
validate: (value, args): boolean => isBase64(value, args?.constraints[0]),
3030
defaultMessage: buildMessage(eachPrefix => eachPrefix + '$property must be base64 encoded', validationOptions),
3131
},
3232
},

0 commit comments

Comments
 (0)