From b78982bafa93dbc3c693ad9c14fbd293c501d25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Fri, 27 Oct 2017 22:21:15 +0200 Subject: [PATCH] Fix for #8 It has looped in a redirection from the google API url field to the website url. Now only the google links will be redirected. We also delete the id rule, because google use the id field for too many important functions. --- data/data.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/data.json b/data/data.json index 85c74d4..1cf49d0 100644 --- a/data/data.json +++ b/data/data.json @@ -50,7 +50,6 @@ "zx=[^\\/|\\?|&]*(\\/|&(amp;)?)?", "_u=[^\\/|\\?|&]*(\\/|&(amp;)?)?", "je=[^\\/|\\?|&]*(\\/|&(amp;)?)?", - "[a-zA-Z\\_]+id=[^\\/|\\?|&]*(\\/|&(amp;)?)?", "dcr=[^\\/|\\?|&]*(\\/|&(amp;)?)?", "ie=[^\\/|\\?|&]*(\\/|&(amp;)?)?" ], @@ -63,7 +62,7 @@ ".*(google\\.)\\w{2,}\\/searchbyimage\\?image_url=[^\\/|\\?|&]*(\\/|&(amp;)?)?" ], "redirections": [ - "url=([^\\/|\\?|&]*)" + "url\\?.*url=([^\\/|\\?|&]*)" ] }, "googlesyndication": {