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

update the FROM_STRING_PATTERN inside Address.php #14

Closed

Conversation

ghost
Copy link

@ghost ghost commented Dec 4, 2023

Fixes the FROM_STRING_PATTERN inside Address.php.

As it is right now strings with the character inside the display name "<" will not parse correctly. For example the string "Andre Hoong <3 [email protected]" will have the following matches returned using the current pattern:
displayName => Andre Hoong
addrSpec => 3 <[email protected]

The new string pattern '(?.)?<(?.)>[^>]*' allows the displayName to include the "<" character and correctly parses the addrSpec. It does this by taking the last occurence of the "<" to singal the start of the addrSpec

Copy link

github-actions bot commented Dec 4, 2023

Thanks for your pull request! We love contributions.

However, you should instead open a pull request on the main repository:

https://github.com/symfony/symfony

This repository is what we call a "subtree split": a read-only subset of that main repository.

We're looking forward to your PR there!

@github-actions github-actions bot closed this Dec 4, 2023
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

Successfully merging this pull request may close these issues.

1 participant