[Pkg-mozext-commits] [adblock-plus] 96/464: Properly consider properties keys that are empty in en-US locale when filling up translations

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 59a4b8f7eb1ea3d0b9d36b17a52fc18be0cbabea
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Tue Nov 2 10:51:03 2010 +0100

    Properly consider properties keys that are empty in en-US locale when filling up translations
---
 Packager.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Packager.pm b/Packager.pm
index 4e0aadd..f5011a5 100644
--- a/Packager.pm
+++ b/Packager.pm
@@ -630,10 +630,10 @@ sub fixPropertiesFile
 
   my $changed = 0;
   $data .= "\n" unless $data =~ /\n$/s;
-  while ($reference =~ /^\s*(?![!#])(\S+)\s*=\s*.+$/mg)
+  while ($reference =~ /^\s*(?![!#])(\S+)\s*=\s*?.*$/mg)
   {
     my ($match, $name) = ($&, $1);
-    unless ($data =~ /^\s*(?![!#])($name)\s*=\s*.+$/m)
+    unless ($data =~ /^\s*(?![!#])($name)\s*=\s*?.*$/m)
     {
       $data .= "$match\n";
       $changed = 1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list