|
@@ -14,7 +14,7 @@ class LuStringUtils
|
14
|
14
|
{
|
15
|
15
|
public static function snakeToCamelCase($string, $capitalizeFirstCharacter)
|
16
|
16
|
{
|
17
|
|
- $str = preg_replace_callback("/_[a-zA-Z]/", function($matches)
|
|
17
|
+ $str = preg_replace_callback("/_[a-zA-Z0-9]/", function($matches)
|
18
|
18
|
{
|
19
|
19
|
return strtoupper($matches[0][1]);
|
20
|
20
|
}, $string);
|
|
@@ -26,7 +26,7 @@ class LuStringUtils
|
26
|
26
|
|
27
|
27
|
public static function camelCaseToSnake($string, $underscoreFirstCharacter)
|
28
|
28
|
{
|
29
|
|
- $str = preg_replace_callback("/[A-Z]/", function($matches)
|
|
29
|
+ $str = preg_replace_callback("/[A-Z0-9]/", function($matches)
|
30
|
30
|
{
|
31
|
31
|
return strtolower("_" . $matches[0]);
|
32
|
32
|
}, $string);
|