[Pkg-mozext-commits] [adblock-plus] 368/464: Slightly improved previous commit - use \s in regular expressions instead of the actual space character
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:34 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 ac5033b6003d8e033db8fe8de8480d8be354b0dc
Author: Wladimir Palant <trev at adblockplus.org>
Date: Wed Feb 20 08:35:14 2013 +0100
Slightly improved previous commit - use \s in regular expressions instead of the actual space character
---
packagerGecko.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packagerGecko.py b/packagerGecko.py
index a20a3fd..df4ef6b 100644
--- a/packagerGecko.py
+++ b/packagerGecko.py
@@ -208,7 +208,7 @@ def addMissingFiles(params, files):
def checkScript(name):
content = files[name]
- for match in re.finditer(r'(?:^|\s)require\( *"([\w\-]+)" *\)', content):
+ for match in re.finditer(r'(?:^|\s)require\(\s*"([\w\-]+)"\s*\)', content):
templateData['requires'][match.group(1)] = True
if name.startswith('chrome/content/'):
templateData['hasChromeRequires'] = True
--
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