From: Frank Lichtenheld Date: Mon, 10 Dec 2007 20:41:07 +0000 (+0100) Subject: Packages::I18N::Locale: Simplify format string test regex X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=a98a6736b94a98c3a693b7f087b846e7eb698783;p=deb%2Fpackages.git Packages::I18N::Locale: Simplify format string test regex We only use %s and %u now, no need to test for %f anymore --- diff --git a/lib/Packages/I18N/Locale.pm.sed.in b/lib/Packages/I18N/Locale.pm.sed.in index 11c75a3..d33f820 100644 --- a/lib/Packages/I18N/Locale.pm.sed.in +++ b/lib/Packages/I18N/Locale.pm.sed.in @@ -28,7 +28,7 @@ sub N_ { return $_[0]; } sub g { my ($self, $format, @args) = @_; my $result = $self->maketext($format, @args); - return sprintf($result, @args) if $result =~ /%([su]|[.\d]*f)/; + return sprintf($result, @args) if $result =~ /%[su]/o; return $result; }