Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Include the parsed value in the returned objects #62

Open
dariusj18 opened this issue Dec 3, 2021 · 1 comment
Open

Comments

@dariusj18
Copy link

In the addresses portion, return the full value captured by the parser.

ex.

> addrs.parseAddressList('[email protected], Bob <[email protected]>')
[
  {
    parts: {
      name: null,
      address: [Object],
      local: [Object],
      domain: [Object],
    },
    name: null,
    address: "[email protected]",
    local: "jack",
    domain: "fogcreek.com",
    full: "[email protected]",
  },
  {
    parts: {
      name: [Object],
      address: [Object],
      local: [Object],
      domain: [Object],
    },
    name: "Bob",
    address: "[email protected]",
    local: "bob",
    domain: "example.com",
    full: "Bob <[email protected]>",
  },
];

@dariusj18
Copy link
Author

Though is this gettable by trimming the object's node.tokens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant