|
@@ -282,7 +282,7 @@ class Container implements ContainerInterface, \ArrayAccess
|
|
|
|
|
|
static public function camelize($id)
|
|
static public function camelize($id)
|
|
{
|
|
{
|
|
- return preg_replace(array('/(^|_)+(.)/e', '/\.(.)/e'), array("strtoupper('\\2')", "'_'.strtoupper('\\1')"), $id);
|
|
|
|
|
|
+ return preg_replace(array('/(?:^|_)+(.)/e', '/\.(.)/e'), array("strtoupper('\\1')", "'_'.strtoupper('\\1')"), $id);
|
|
}
|
|
}
|
|
|
|
|
|
static public function underscore($id)
|
|
static public function underscore($id)
|