Helpviewer/AdBlock/AdBlockRule.py

changeset 3022
57179e4cdadd
parent 3000
971d84f7a6d6
child 3035
36e9f388958b
child 3058
0a02c433f52d
--- a/Helpviewer/AdBlock/AdBlockRule.py	Mon Oct 14 20:08:19 2013 +0200
+++ b/Helpviewer/AdBlock/AdBlockRule.py	Tue Oct 15 18:29:32 2013 +0200
@@ -556,7 +556,8 @@
         # escape special symbols
         pattern = re.sub(r"(\W)", r"\\\1", pattern)
         # process extended anchor at expression start
-        pattern = re.sub(r"^\\\|\\\|",
+        pattern = re.sub(
+            r"^\\\|\\\|",
             r"^[\w\-]+:\/+(?!\/)(?:[^\/]+\.)?", pattern)
         # process separator placeholders
         pattern = re.sub(r"\\\^", r"(?:[^\w\d\-.%]|$)", pattern)

eric ide

mercurial