Skip to content

Commit

Permalink
Camelize digits for getters/setters
Browse files Browse the repository at this point in the history
  • Loading branch information
drslump committed Aug 8, 2011
1 parent a107142 commit 5c9fa1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/DrSlump/Protobuf/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function getOption($option, $type = 'string')
public function camelize($name)
{
return preg_replace_callback(
'/_([a-z])/i',
'/_([a-z0-9])/i',
function($m){ return strtoupper($m[1]); },
$name
);
Expand Down

0 comments on commit 5c9fa1c

Please sign in to comment.