ZF-12041: Zend filter underscore to camel case retains underscore if the string contains a numeric

Issue Type: Bug Created: 2012-02-03T14:24:27.000+0000 Last Updated: 2012-02-03T14:24:27.000+0000 Status: Open Fix version(s): Reporter: Lee Davis (leedavis81) Assignee: Thomas Weidner (thomas) Tags: - Zend_Filter

Related issues: Attachments:


When filtering a string with underscore to camel case, underscores are retained if the string contains a numeric.

$a = 'this_has_a_24_number'; $filter = new Zend_Filter_Word_UnderscoreToCamelCase(); echo $filter->filter($a);

OUTPUT: ThisHasA_24Number

I'm not entirely sure if this is the expected behaviour or not as you obviously cannot camel case numerics. However I feel the underscore should at least be removed after being passed through the filter.


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.