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 cd93cdb commit 058dc02Copy full SHA for 058dc02
1 file changed
lib/fetch/dataURL.js
@@ -418,8 +418,11 @@ function forgivingBase64 (data) {
418
if (dataLength % 4 === 0) {
419
// 1. If data ends with one or two U+003D (=) code points,
420
// then remove them from data.
421
- if (data.charCodeAt(dataLength - 1) === 0x003D && data.charCodeAt(--dataLength) === 0x003D) {
+ if (data.charCodeAt(dataLength - 1) === 0x003D) {
422
--dataLength
423
424
+ --dataLength
425
+ }
426
}
427
428
0 commit comments