[Pkg-mozext-commits] [adblock-plus] 367/464: Added whitespace recognition to checking for "require(...)" statements.
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 cd614f7248e1108b60485a273db025871f890364
Author: eric <none at none>
Date: Tue Feb 19 19:39:37 2013 -0700
Added whitespace recognition to checking for "require(...)" statements.
---
packagerGecko.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packagerGecko.py b/packagerGecko.py
index 85fb3d6..a20a3fd 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\( *"([\w\-]+)" *\)', 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