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

Wrong result when parsing string containing the : char #17

Open
marcotisi opened this issue Jun 13, 2023 · 0 comments
Open

Wrong result when parsing string containing the : char #17

marcotisi opened this issue Jun 13, 2023 · 0 comments

Comments

@marcotisi
Copy link

Description

The library fails to parse a string when one or more address contains the : char.

Example

Parsing the string

John Doe :: Doe Industries <[email protected]>, Jane Doe :: Doe Industries <[email protected]>, [email protected]

returns this object:

[
  {
    "group": [
      {
        "group": [
          {
            "address": "[email protected]",
            "name": "Doe Industries"
          },
          {
            "group": [
              {
                "group": [
                  {
                    "address": "[email protected]",
                    "name": "Doe Industries"
                  },
                  {
                    "address": "[email protected]",
                    "name": ""
                  }
                ]
              }
            ],
            "name": "Jane Doe"
          }
        ]
      }
    ],
    "name": "John Doe"
  }
]

when it should be

[
  {
    "address": "[email protected]",
    "name": "John Doe :: Doe Industries"
  },
  {
    "address": "[email protected]",
    "name": "Jane Doe :: Doe Industries"
  },
  {
    "address": "[email protected]",
    "name": ""
  }
]
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