zendframework/zf2 — pull request #2161 by BilgeXA (2012-08-13 19:04:31+00:00)
Title: StringTrim fixes (see details)

* Enabled UTF-8 modifier (u) since the function claims to be a Unicode trim. This also expands the meaning of \s to include a more complete whitespace character list.
* Ensured pattern matches at least one char before attempting removal (* -> +)
* Removed study modifier (S) from patterns that do not benefit from it.