nette / utils

🛠 Lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
https://doc.nette.org/utils
Other
1.98k stars 147 forks source link

Strings improvement: trim ZWSP char #304

Closed CrazyMuffin closed 11 months ago

CrazyMuffin commented 11 months ago

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 commented 11 months ago

Thanks