Commit 45ab8e8d232a5a09d2e848690e78fcfb46622876
Merge pull request #4 from dominictarr/master
fix bug with .. in tags for signaturesPaul Frazee committed on 11/22/2014, 4:03:10 PM
Parent: 6c030d1ba292d2341fe3d4497374c3536d3d0566
Parent: 7f1bf9e79916feee154feb29bed1fadca5c04e4c
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -89,9 +89,9 @@ | ||
89 | 89 | return keysToBase64(ecc.restore(k256, privateKey)) |
90 | 90 | } |
91 | 91 | |
92 | 92 | function tag (key, tag) { |
93 | - return key.toString('base64')+'.' + tag | |
93 | + return key.toString('base64')+'.' + tag.replace(/^\./, '') | |
94 | 94 | } |
95 | 95 | |
96 | 96 | exports.load = function(namefile, cb) { |
97 | 97 | fs.readFile(namefile, 'ascii', function(err, privateKeyStr) { |
Built with git-ssb-web