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

Fiets\Util\Names::extractParts fails when name contains multibyte/utf8 chars #1

Open
jorisleker opened this issue Apr 5, 2023 · 0 comments

Comments

@jorisleker
Copy link
Contributor

When processing names that start with an uppercase char and have a multibyte char in the second position (ie Jöris), the regex in Fiets\Util\Names::ExtractParts matches on the [A-Z]{1}\.?[\W] pattern, because [\W] matches any char not in the set [a-z0-9]. This results in us treating the J as an initial, and replacing the first half of the multibyte ö char with a.

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