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

Strings improvement: trim ZWSP char #304

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Strings improvement: trim ZWSP char #304

merged 2 commits into from
Oct 30, 2023

Conversation

CrazyMuffin
Copy link
Contributor

  • new feature
  • BC break? yes - if someone relies on having ZWSP non-trimmed while using default parameter.
  • doc PR: Not needed, function is covered and does not mention the default characters

Sneaky Zero-Width Space char \u{200B} is currently untrimmed by trim function, while I'd expect it to do so.

Workaround:

  1. Fork or extend the class and overwrite default param
  2. Manually set updated charlist as second argument to every trim() call

@dg
Copy link
Member

dg commented Oct 30, 2023

Thanks

@dg dg merged commit 4b7b01e into nette:master Oct 30, 2023
12 of 13 checks passed
dg pushed a commit that referenced this pull request Nov 1, 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.

None yet

2 participants