small fixes

This commit is contained in:
Sanjana Rajan
2017-03-06 20:04:10 -08:00
parent 7bf697769d
commit 7d02154dc9
4 changed files with 10 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ import config from '../config';
* 3 = PGP MESSAGE
* 4 = PUBLIC KEY BLOCK
* 5 = PRIVATE KEY BLOCK
* 6 = SIGNATURE
*/
function getType(text) {
var reHeader = /^-----BEGIN PGP (MESSAGE, PART \d+\/\d+|MESSAGE, PART \d+|SIGNED MESSAGE|MESSAGE|PUBLIC KEY BLOCK|PRIVATE KEY BLOCK|SIGNATURE)-----$\n/m;