Skip to content

Commit

Permalink
Merge pull request #51 from ben-ekw/master
Browse files Browse the repository at this point in the history
fixes #38
  • Loading branch information
h2non committed May 30, 2022
2 parents 67d3f49 + 6dc3eb6 commit e586290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hashes.js
Expand Up @@ -294,11 +294,11 @@
// public method for encoding
this.encode = function(input) {
var i, j, triplet,
output = '',
len = input.length;
output = '';

pad = pad || '=';
input = (utf8) ? utf8Encode(input) : input;
len = input.length;

for (i = 0; i < len; i += 3) {
triplet = (input.charCodeAt(i) << 16) | (i + 1 < len ? input.charCodeAt(i + 1) << 8 : 0) | (i + 2 < len ? input.charCodeAt(i + 2) : 0);
Expand Down

0 comments on commit e586290

Please sign in to comment.