Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Enhance removeLTRM #23

Closed
Akeru opened this issue May 11, 2013 · 1 comment
Closed

Enhance removeLTRM #23

Akeru opened this issue May 11, 2013 · 1 comment
Assignees
Milestone

Comments

@Akeru
Copy link
Contributor

Akeru commented May 11, 2013

The helper's method removeLTRM could be replaced with a more general version using the following regexp '/^[\pZ\pC]+|[\pZ\pC]+$/u'. It could alos be renamed "trim"

Please see http://stackoverflow.com/questions/4166896/trim-unicode-whitespace-in-php-5-2 for more details.

@ghost ghost assigned mbilbille May 14, 2013
@mbilbille
Copy link
Owner

Thanks, I update the pattern and rename removeLTRM() to trim()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants