mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-02-28 22:13:33 +00:00
DeArmor: remove whitespace of blank line
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
*/
|
||||
function openpgp_encoding_deArmor(text) {
|
||||
text = text.replace(/\r/g, '')
|
||||
// remove whitespace of blank line to allow later split at \n\n
|
||||
text = text.replace(/\n\s+\n/, '\n\n');
|
||||
|
||||
var type = openpgp_encoding_get_type(text);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user