Skip to content

IndexError: no such group #2

@justinnaldzin

Description

@justinnaldzin

retirejs.scan_endpoint("https://apis.google.com/js/plusone.js")

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-16-994defb48f3e> in <module>()
----> 1 retirejs.scan_endpoint("https://apis.google.com/js/plusone.js")

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in scan_endpoint(uri, definitions)
    172     hosted at that uri
    173     """
--> 174     uri_scan_result = scan_uri(uri, definitions)
    175 
    176     filecontent = requests.get(uri, verify=False).text

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in scan_uri(uri, definitions)
    144 
    145 def scan_uri(uri, definitions=definitions):
--> 146     result = scan(uri, 'uri', definitions=definitions)
    147     return check(result)
    148 

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in scan(data, extractor, matcher, definitions)
     23             continue
     24         for i in extractors:
---> 25             match = matcher(i, data)
     26             if (match):
     27                 detected.append({"version": match,

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in _simple_match(regex, data)
     33 def _simple_match(regex, data):
     34     match = re.search(regex, data)
---> 35     return match.group(1) if match else None
     36 
     37 

IndexError: no such group

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions