Skip to content

Commit

Permalink
case insensitive strip leading number
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Apr 16, 2012
1 parent c642e49 commit 2acf7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MooseX/Types/NumUnit.pm
Expand Up @@ -143,7 +143,7 @@ sub _convert {
$requested_unit ||= '';

my $unit = $input;
my $val = $1 if $unit =~ s/($number_re)//;
my $val = $1 if $unit =~ s/($number_re)//i;

return $val if ($requested_unit eq 'strip_unit');

Expand Down

0 comments on commit 2acf7da

Please sign in to comment.