We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21a564e commit 5443937Copy full SHA for 5443937
1 file changed
scripts/test.mjs
@@ -22,7 +22,7 @@ function test(base64, omitPadding) {
22
console.log(enc)
23
if (omitPadding) {
24
if (enc.endsWith('=')) process.exit(1)
25
- } else if (v.length % 3 && !enc.endsWith('=')) {
+ } else if (v.length % 3 && !enc.endsWith('='.repeat(3 - (v.length % 3)))) {
26
process.exit(1)
27
}
28
var isEqual = false
0 commit comments