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

UnderscoreToCamelCase fails with digits #7073

Closed
vmasciotta opened this issue Dec 23, 2014 · 3 comments
Closed

UnderscoreToCamelCase fails with digits #7073

vmasciotta opened this issue Dec 23, 2014 · 3 comments

Comments

@vmasciotta
Copy link

$string = 'ABC_0001'; 
$filter = new \Zend\Filter\Word\UnderscoreToCamelCase(); 
echo $filter->filter($string); //returns ABC_0001 

If $string = 'ABC_Z0001';, so You add a character after the underscore then You get ABCZ0001.

Now, it's fine for me that I get everything in uppercase, but the underscore shouldn't be there anymore. Am I wrong?

@moderndeveloperllc
Copy link
Contributor

There is a similar issue with SeparatorToCamelCase that was fixed in the develop branch here - #6156

@samsonasik
Copy link
Contributor

@vmasciotta @Ocramius I think it can be closed as already fixed in develop as @moderndeveloperllc said

@Ocramius Ocramius self-assigned this Dec 30, 2014
@Ocramius Ocramius added this to the 2.4.0 milestone Dec 30, 2014
@Ocramius
Copy link
Member

@moderndeveloperllc @samsonasik thanks, closing!

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

No branches or pull requests

4 participants