diff options
author | Rogan Creswick <creswick@gmail.com> | 2013-01-02 14:57:27 -0800 |
---|---|---|
committer | Rogan Creswick <creswick@gmail.com> | 2013-01-02 14:57:27 -0800 |
commit | f7b228c479bac8828e521a2826d7f57f150da877 (patch) | |
tree | 7303cfb391a0e2a0bf5d85a520af6643e78be674 /tools | |
parent | 75139375b76cb277546da2429d8e983ca6758f61 (diff) |
updated the REUQIRE_RE regular expression to ignore goog.require function calls
Diffstat (limited to 'tools')
-rw-r--r-- | tools/addon-sdk-1.7/python-lib/cuddlefish/manifest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/addon-sdk-1.7/python-lib/cuddlefish/manifest.py b/tools/addon-sdk-1.7/python-lib/cuddlefish/manifest.py index abe37d3..7309db5 100644 --- a/tools/addon-sdk-1.7/python-lib/cuddlefish/manifest.py +++ b/tools/addon-sdk-1.7/python-lib/cuddlefish/manifest.py @@ -611,8 +611,8 @@ def build_manifest(target_cfg, pkg_cfg, deps, scan_tests, COMMENT_PREFIXES = ["//", "/*", "*", "dump("] -REQUIRE_RE = r"(?<![\'\"])require\s*\(\s*[\'\"]([^\'\"]+?)[\'\"]\s*\)" -#REQUIRE_RE = r"(?<!goog[.])(?<![\'\"])\brequire\s*\(\s*[\'\"]([^\'\"]+?)[\'\"]\s*\)" +#REQUIRE_RE = r"(?<![\'\"])require\s*\(\s*[\'\"]([^\'\"]+?)[\'\"]\s*\)" +REQUIRE_RE = r"(?<!goog[.])(?<![\'\"])\brequire\s*\(\s*[\'\"]([^\'\"]+?)[\'\"]\s*\)" # detect the define idiom of the form: # define("module name", ["dep1", "dep2", "dep3"], function() {}) |