Fix util.Uint8Array_to_b64 to not return lone \r characters
This commit is contained in:
parent
c91fcd684d
commit
192893ecf0
|
@ -250,7 +250,7 @@ export default {
|
||||||
* @returns {String} Base-64 encoded string
|
* @returns {String} Base-64 encoded string
|
||||||
*/
|
*/
|
||||||
Uint8Array_to_b64: function (bytes, url) {
|
Uint8Array_to_b64: function (bytes, url) {
|
||||||
return b64.encode(bytes, url).replace(/(\n)/g, '');
|
return b64.encode(bytes, url).replace(/[\r\n]/g, '');
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user