While I agree it SHOULDN'T be necessary to reverse dash escaping in the non type 2 case, the original code did it and it is 
harmless so I left it. 

----- Original Message -----

| From: "Thomas Oberndörfer" <notifications@github.com>
| To: "openpgpjs/openpgpjs" <openpgpjs@noreply.github.com>
| Cc: "Robert Nelson" <robertn@the-nelsons.org>
| Sent: Saturday, December 7, 2013 5:54:31 AM
| Subject: Re: [openpgpjs] Merge signature changes from master (#137)

| In src/encoding/armor.js:
| >    if (type != 2) {
| > -    var splittedtext = text.split('-----');
| > -
| > -    var result = {
| > -      data: base64.decode(
| > -        splittedtext[2]
| > -        .split('\n\n')[1]
| > -        .split("\n=")[0]
| > -        .replace(/\n- /g, "\n")),
| > +    var msg = split_headers(splittext[indexBase].replace(/^- /mg, ''));

| Reversing dash-escaping should be only relevant for type == 2?

| —
| Reply to this email directly or view it on GitHub .