~deryck/lazr-js/morphing-window-dialog

« back to all changes in this revision

Viewing changes to src-py/lazr/js/meta.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-11-23 18:16:15 UTC
  • mfrom: (156.1.1 fix-details-re)
  • Revision ID: launchpad@pqm.canonical.com-20091123181615-c9o0osgv0o85bpv6
[r=intellectronica] Fix DETAILS_RE in meta.py so that it doesn't do
        substring matching on the keywords used to find the
        dependencies of a module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
DETAILS_RE = re.compile(
13
13
    "YUI\.add\([\'\"\s]*([^\'\"]*)[\'\"\s]*,.*?function.*?"
14
14
    "[\'\"\s]*[0-9\.]*[\'\"\s]*"
15
 
    "({[^{}]*(use|requires|optional|after|"
16
 
    "supersedes|omit|skinnable)[^{}]*})\s*\);", re.M | re.S)
 
15
    "({[^{}a-zA-Z]*(use|requires|optional|after|"
 
16
    "supersedes|omit|skinnable)[^{}a-zA-Z]*})\s*\);", re.M | re.S)
17
17
 
18
18
 
19
19
def extract_metadata(src):