Fixed broken HTML manifest regex

This commit is contained in:
Eliot Berriot 2020-01-09 10:08:52 +01:00
parent ebf774d5ab
commit cf555b8aec
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
2 changed files with 7 additions and 3 deletions

View file

@ -77,7 +77,7 @@ def serve_spa(request):
return http.HttpResponse(head + tail)
MANIFEST_LINK_REGEX = re.compile(r"<link .*rel=(?:'|\")?manifest(?:'|\")?.*>")
MANIFEST_LINK_REGEX = re.compile(r"<link [^>]*rel=(?:'|\")?manifest(?:'|\")?[^>]*>")
def replace_manifest_url(head, new_url):