(text)
| 55 | } |
| 56 | |
| 57 | export 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 | |
| 66 | export function formatAddress(email, name) { |
| 67 | return new goog.format.EmailAddress(email, name).toString(); |
no outgoing calls
no test coverage detected