fix
authorjoerg <joerg@c2f067bf-98e0-425f-9c98-e76020cfa380>
Thu, 11 Oct 2012 07:06:50 +0000 (07:06 +0000)
committerjoerg <joerg@c2f067bf-98e0-425f-9c98-e76020cfa380>
Thu, 11 Oct 2012 07:06:50 +0000 (07:06 +0000)
git-svn-id: svn+ssh://svn.debian.org/svn/planet-debian/trunk@1619 c2f067bf-98e0-425f-9c98-e76020cfa380

filters/remove-trackers-and-ads.plugin

index 84c2a04..50e2a4b 100644 (file)
@@ -17,8 +17,8 @@ regexes = [
        # Paypal tracking images
        r"""<img [^>]*?src=['"]https?://www\.paypalobjects\.com/[^/]*/i/scr/pixel.gif[^"']*['"][^>]*>""",
        # Other tracking images
-       r'<img [^>]*?width=["']1["'][^>]*?height=["']1["'][^>]*>',
-       r'<img [^>]*?height=["']1["'][^>]*?width=["']1["'][^>]*>',
+       r"""<img [^>]*?width=["']1["'][^>]*?height=["']1["'][^>]*>""",
+       r"""<img [^>]*?height=["']1["'][^>]*?width=["']1["'][^>]*>""",
 ]
 
 for regex in regexes: data = re.sub(regex, '', data)