From a98a6736b94a98c3a693b7f087b846e7eb698783 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 10 Dec 2007 21:41:07 +0100 Subject: [PATCH] Packages::I18N::Locale: Simplify format string test regex We only use %s and %u now, no need to test for %f anymore --- lib/Packages/I18N/Locale.pm.sed.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2