Răsfoiți Sursa

fix url parsing through quotes

Nick Sweeting 5 ani în urmă
părinte
comite
3658153cf8
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      archivebox/util.py

+ 1 - 1
archivebox/util.py

@@ -59,7 +59,7 @@ URL_REGEX = re.compile(
     r'(?:[a-zA-Z]|[0-9]'              # followed by allowed alphanum characters
     r'(?:[a-zA-Z]|[0-9]'              # followed by allowed alphanum characters
     r'|[$-_@.&+]|[!*\(\),]'           #    or allowed symbols
     r'|[$-_@.&+]|[!*\(\),]'           #    or allowed symbols
     r'|(?:%[0-9a-fA-F][0-9a-fA-F]))'  #    or allowed unicode bytes
     r'|(?:%[0-9a-fA-F][0-9a-fA-F]))'  #    or allowed unicode bytes
-    r'[^\]\[\(\)<>\""\'\s]+',         # stop parsing at these symbols
+    r'[^\]\[\(\)<>"\'\s]+',         # stop parsing at these symbols
     re.IGNORECASE,
     re.IGNORECASE,
 )
 )