MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / parseMetaInfo

Function parseMetaInfo

src/modules/pgpModel.js:354–363  ·  view source on GitHub ↗
(txt)

Source from the content-addressed store, hash-verified

352}
353
354function parseMetaInfo(txt) {
355 const result = {};
356 txt.replace(/\r/g, '').split('\n').forEach(row => {
357 if (row.length) {
358 const keyValue = row.split(/:\s/);
359 result[keyValue[0]] = keyValue[1];
360 }
361 });
362 return result;
363}
364
365export async function restorePrivateKeyBackup(armoredBlock, code) {
366 let message = await pgpReadMessage({armoredMessage: armoredBlock});

Callers 1

restorePrivateKeyBackupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected