Merge pull request #111 from cryptoreddit/patch-1
In Base64 encoding, if result ends in \n, remove it. (Fixes #79, #105)
This commit is contained in:
commit
81fdb00418
|
@ -54,7 +54,8 @@ function s2r(t) {
|
||||||
r += "\n";
|
r += "\n";
|
||||||
r += '=';
|
r += '=';
|
||||||
}
|
}
|
||||||
|
if (r.charAt(r.length-1)==="\n")
|
||||||
|
r=r.slice(0,-1);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user