Skip to content

Commit 02a2745

Browse files
author
Nicholas C. Zakas
committed
Now detect invalid padding
1 parent bcd6004 commit 02a2745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

encodings/base64/base64.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function base64Decode(text){
9393
i=0,
9494
result = [];
9595

96-
//remove any whitespace and equals signs
96+
//remove any equals signs
9797
text = text.replace(/=/g, "");
9898

9999
//loop over each character

0 commit comments

Comments
 (0)