Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
XadillaX committed Oct 8, 2022
1 parent 164a4fd commit 20a2587
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1303,8 +1303,9 @@ function atob(input) {
input = input.replace(/(=\s*){1,2}$/, s => {
return s.replace(/=/gi, '');
});
nonAsciiWhitespaceCharCount -= (initLength - input.length);
equalCharCount -= (initLength - input.length);
const deltaLength = initLength - input.length;
nonAsciiWhitespaceCharCount -= deltaLength;
equalCharCount -= deltaLength;
reminder = nonAsciiWhitespaceCharCount % 4;
}

Expand Down

0 comments on commit 20a2587

Please sign in to comment.