Fix atob to match browser implementations
Test case:
atob('/A==') === String.fromCharCode(252) should be true
Bu işleme şunda yer alıyor:
ebeveyn
87f7024d3e
işleme
b35a566ac6
2
index.js
2
index.js
@ -2,7 +2,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function atob(str) {
|
function atob(str) {
|
||||||
return new Buffer(str, 'base64').toString('utf8');
|
return new Buffer(str, 'base64').toString('binary');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = atob;
|
module.exports = atob;
|
||||||
|
|||||||
Yükleniyor…
x
Yeni konuda referans
Bir kullanıcı engelle