allow '/' and '?' in URL queries

This commit is contained in:
Mike Fährmann
2022-10-02 19:02:05 +02:00
parent 60cce7462c
commit b8d268f57e
5 changed files with 11 additions and 11 deletions

View File

@@ -27,9 +27,9 @@ class GenericExtractor(Extractor):
pattern += r"""
(?P<scheme>https?://)? # optional http(s) scheme
(?P<domain>[-\w\.]+) # required domain
(?P<path>/[^?&#]*)? # optional path
(?:\?(?P<query>[^/?#]*))? # optional query
(?:\#(?P<fragment>.*))?$ # optional fragment
(?P<path>/[^?#]*)? # optional path
(?:\?(?P<query>[^#]*))? # optional query
(?:\#(?P<fragment>.*))? # optional fragment
"""
def __init__(self, match):