Skip to content

Commit 5c9fa1c

Browse files
author
drslump
committed
Camelize digits for getters/setters
1 parent a107142 commit 5c9fa1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/DrSlump/Protobuf/Compiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function getOption($option, $type = 'string')
9292
public function camelize($name)
9393
{
9494
return preg_replace_callback(
95-
'/_([a-z])/i',
95+
'/_([a-z0-9])/i',
9696
function($m){ return strtoupper($m[1]); },
9797
$name
9898
);

0 commit comments

Comments
 (0)