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 2b187a1 commit bcd6004Copy full SHA for bcd6004
encodings/base64/base64.js
@@ -83,7 +83,7 @@ function base64Decode(text){
83
text = text.replace(/\s/g,"");
84
85
//first check for any unexpected input
86
- if(!(/^[a-z0-9\+\/\s]+\={0,2}$/i.test(text)) | text.length % 4 > 0){
+ if(!(/^[a-z0-9\+\/\s]+\={0,2}$/i.test(text)) || text.length % 4 > 0){
87
throw new Error("Not a base64-encoded string.");
88
}
89
0 commit comments