[Pkg-mozext-commits] [adblock-plus] 362/464: Always replace special characters in string names, Chrome is very strict about it

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:33 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 6c2991d2ca8e6b13a098819570f793193e315a2b
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Jan 25 13:13:15 2013 +0100

    Always replace special characters in string names, Chrome is very strict about it
---
 packagerChrome.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packagerChrome.py b/packagerChrome.py
index f68876a..97548aa 100644
--- a/packagerChrome.py
+++ b/packagerChrome.py
@@ -217,7 +217,7 @@ def importGeckoLocales(params, files):
 
           if stringID in sourceData:
             if noMangling:
-              key = stringID
+              key = re.sub(r'\W', '_', stringID)
             else:
               key = re.sub(r'\..*', '', parts[-1]) + '_' + re.sub(r'\W', '_', stringID)
             if key in data:

-- 
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