From aabcaf16c5cb3d8c46710fc69bc837ad232eabde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Fri, 22 Sep 2017 14:49:42 +0200 Subject: [PATCH 1/3] Add exceptions for google docs and drive @sciguyryan thx for reporting the issue Fix for #4 --- data/data.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/data.json b/data/data.json index 9555c35..7374f6e 100644 --- a/data/data.json +++ b/data/data.json @@ -54,7 +54,9 @@ "dcr=[^\\/|\\?|&]*(\\/|&(amp;)?)?" ], "exceptions": [ - ".*(mail\\.google\\.)\\w{2,}(\\/mail\\/u\\/0)\\/.*" + ".*(mail\\.google\\.)\\w{2,}(\\/mail\\/u\\/0)\\/.*", + ".*(google\\.)\\w{2,}(\\/upload)?(\\/drive)\\/.*", + ".*(docs\\.google\\.)w{2,}\\/.*" ], "redirections": [ "url=([^\\/|\\?|&]*)" From 092182c83ae669324e36e185b20fbfb387d68e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Fri, 22 Sep 2017 15:01:50 +0200 Subject: [PATCH 2/3] Fix google docs Top-Level Domain regex --- data/data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/data.json b/data/data.json index 7374f6e..deb1caf 100644 --- a/data/data.json +++ b/data/data.json @@ -56,7 +56,7 @@ "exceptions": [ ".*(mail\\.google\\.)\\w{2,}(\\/mail\\/u\\/0)\\/.*", ".*(google\\.)\\w{2,}(\\/upload)?(\\/drive)\\/.*", - ".*(docs\\.google\\.)w{2,}\\/.*" + ".*(docs\\.google\\.)\\w{2,}\\/.*" ], "redirections": [ "url=([^\\/|\\?|&]*)" From b306347ab5e8fedb26427e4d984a022a86ffff14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Sat, 23 Sep 2017 20:59:24 +0200 Subject: [PATCH 3/3] Add rule for twitter Add rule for twitter from #2 --- data/data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/data.json b/data/data.json index deb1caf..194e29a 100644 --- a/data/data.json +++ b/data/data.json @@ -168,7 +168,7 @@ "urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?twitter\\.)\\w{2,}\\/.*", "completeProvider": false, "rules": [ - "src=[^\\/|\\?|&]*(\\/|&(amp;)?)?" + "(ref_)?src=[^\\/|\\?|&]*(\\/|&(amp;)?)?" ], "exceptions": [], "redirections": []