[generic] revert pattern change

This commit is contained in:
Mike Fährmann
2023-03-09 22:25:23 +01:00
parent 34a7fab0e2
commit 4883420e67
2 changed files with 3 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ class GenericExtractor(Extractor):
# Based on: https://tools.ietf.org/html/rfc3986#appendix-B
pattern += r"""
(?P<scheme>https?://)? # optional http(s) scheme
(?P<domain>[^/?#]+) # required domain
(?P<domain>[-\w\.]+) # required domain
(?P<path>/[^?#]*)? # optional path
(?:\?(?P<query>[^#]*))? # optional query
(?:\#(?P<fragment>.*))? # optional fragment