Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Zend\Filter\Word\SeparatorToCamelCase break on numbers #6151

Closed
cobyl opened this issue Apr 17, 2014 · 1 comment
Closed

Zend\Filter\Word\SeparatorToCamelCase break on numbers #6151

cobyl opened this issue Apr 17, 2014 · 1 comment
Assignees
Milestone

Comments

@cobyl
Copy link
Contributor

cobyl commented Apr 17, 2014

$filter = new \Zend\Filter\Word\SeparatorToCamelCase('_');
$filtered = $filter->filter("user_2_user");

echo $filtered;  // User_2User !!!
@moderndeveloperllc
Copy link
Contributor

Yep, the PCRE patterns are only matching letters. I'll take a look at fixing that and the mbstring stuff today or tomorrow.

Ocramius added a commit that referenced this issue Apr 29, 2014
…whitespace-after-separator' into develop

Close #6151
Close #6156
@Ocramius Ocramius self-assigned this Apr 29, 2014
@Ocramius Ocramius added this to the 2.4.0 milestone Apr 29, 2014
gianarb pushed a commit to zendframework/zend-filter that referenced this issue May 15, 2015
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

3 participants