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

Function parseAddressList

src/lib/email.js:57–64  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

55}
56
57export function parseAddressList(text) {
58 if (!text) {
59 return [];
60 }
61 return goog.format.EmailAddress.parseList(text)
62 .filter(addr => addr.isValid())
63 .map(addr => ({email: addr.getAddress(), name: addr.getName()}));
64}
65
66export function formatAddress(email, name) {
67 return new goog.format.EmailAddress(email, name).toString();

Callers 2

email.test.jsFile · 0.90
onSecureBtnMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected