From 78d6e4c26b4c9b114d1daf7922ff36c61816c07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Fri, 25 Aug 2017 00:51:01 +0200 Subject: [PATCH] Regex logic fix for amazon search --- data/data.json | 106 ++++++++++++++++++++++++------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/data/data.json b/data/data.json index 8a7a2d9..76d8106 100644 --- a/data/data.json +++ b/data/data.json @@ -4,18 +4,18 @@ "urlPattern": "(https:\\/\\/||http:\\/\\/).*(\\.amazon\\.)\\w{2,}\\/.*", "completeProvider": false, "rules": [ - "pf_rd_[a-zA-Z]=[^&]*(\\?|&(amp;)?)?", - "qid=[^&]*(\\?|&(amp;)?)?", - "sr=[^&]*(\\?|&(amp;)?)?", - "srs=[^&]*(\\?|&(amp;)?)?", + "pf_rd_[a-zA-Z]=[^&]*(\\/|\\?|&(amp;)?)?", + "qid=[^&]*(\\/|\\?|&(amp;)?)?", + "sr=[^&]*(\\/|\\?|&(amp;)?)?", + "srs=[^&]*(\\/|\\?|&(amp;)?)?", ".*(adsensecustomsearchads\\.com)\\/.*", - "pd_rd_[a-zA-Z]*=[^&]*(\\?|&(amp;)?)?", - "__mk_[a-zA-Z]{1,3}_[a-zA-Z]{1,3}=[^&]*(\\?|&(amp;)?)?", - "url=[^&]*(\\?|&(amp;)?)?", - "spIA=[^&]*(\\?|&(amp;)?)?", - "rh=[^&]*(\\?|&(amp;)?)?", - "ms3_c=[^&]*(\\?|&(amp;)?)?", - "ref[\\_]?=[^&]*(\\?|&(amp;)?)?" + "pd_rd_[a-zA-Z]*=[^&]*(\\/|\\?|&(amp;)?)?", + "__mk_[a-zA-Z]{1,3}_[a-zA-Z]{1,3}=[^&]*(\\/|\\?|&(amp;)?)?", + "url=[^&]*(\\/|\\?|&(amp;)?)?", + "spIA=[^&]*(\\/|\\?|&(amp;)?)?", + "rh=[^&]*(\\/|\\?|&(amp;)?)?", + "ms3_c=[^&]*(\\/|\\?|&(amp;)?)?", + "ref[\\_]?=[^&]*(\\/|\\?|&(amp;)?)?" ], "exceptions": [ ".*(amazon\\.)\\w{2,}(\\/gp).*\\/redirector.html\\/.*", @@ -26,27 +26,27 @@ "urlPattern": "(https:\\/\\/||http:\\/\\/).*(\\.google\\.)\\w{2,}\\/.*", "completeProvider": false, "rules": [ - "ved=[^&]*(\\?|&(amp;)?)?", - "bi[a-zA-Z]*=[^&]*(\\?|&(amp;)?)?", - "gfe_[a-zA-Z]*=[^&]*(\\?|&(amp;)?)?", - "ei=[^&]*(\\?|&(amp;)?)?", - "source=[^&]*(\\?|&(amp;)?)?", - "gs_[a-zA-Z]*=[^&]*(\\?|&(amp;)?)?", - "site=[^&]*(\\?|&(amp;)?)?", - "&\\.[^&]*(\\?|&(amp;)?)?", - "oq=[^&]*(\\?|&(amp;)?)?", - "esrc=[^&]*(\\?|&(amp;)?)?", - "uact=[^&]*(\\?|&(amp;)?)?", - "cd=[^&]*(\\?|&(amp;)?)?", - "cad=[^&]*(\\?|&(amp;)?)?", - "gws_[a-zA-Z]*=[^&]*(\\?|&(amp;)?)?", - "im[a-zA-Z]*=[^&]*(\\?|&(amp;)?)?", - "atyp=[^&]*(\\?|&(amp;)?)?", - "vet=[^&]*(\\?|&(amp;)?)?", - "zx=[^&]*(\\?|&(amp;)?)?", - "_u=[^&]*(\\?|&(amp;)?)?", - "je=[^&]*(\\?|&(amp;)?)?", - "[a-zA-Z\\_]+id=[^&]*(\\?|&(amp;)?)?" + "ved=[^&]*(\\/|\\?|&(amp;)?)?", + "bi[a-zA-Z]*=[^&]*(\\/|\\?|&(amp;)?)?", + "gfe_[a-zA-Z]*=[^&]*(\\/|\\?|&(amp;)?)?", + "ei=[^&]*(\\/|\\?|&(amp;)?)?", + "source=[^&]*(\\/|\\?|&(amp;)?)?", + "gs_[a-zA-Z]*=[^&]*(\\/|\\?|&(amp;)?)?", + "site=[^&]*(\\/|\\?|&(amp;)?)?", + "&\\.[^&]*(\\/|\\?|&(amp;)?)?", + "oq=[^&]*(\\/|\\?|&(amp;)?)?", + "esrc=[^&]*(\\/|\\?|&(amp;)?)?", + "uact=[^&]*(\\/|\\?|&(amp;)?)?", + "cd=[^&]*(\\/|\\?|&(amp;)?)?", + "cad=[^&]*(\\/|\\?|&(amp;)?)?", + "gws_[a-zA-Z]*=[^&]*(\\/|\\?|&(amp;)?)?", + "im[a-zA-Z]*=[^&]*(\\/|\\?|&(amp;)?)?", + "atyp=[^&]*(\\/|\\?|&(amp;)?)?", + "vet=[^&]*(\\/|\\?|&(amp;)?)?", + "zx=[^&]*(\\/|\\?|&(amp;)?)?", + "_u=[^&]*(\\/|\\?|&(amp;)?)?", + "je=[^&]*(\\/|\\?|&(amp;)?)?", + "[a-zA-Z\\_]+id=[^&]*(\\/|\\?|&(amp;)?)?" ], "exceptions": [] }, @@ -66,23 +66,23 @@ "urlPattern": ".*", "completeProvider": false, "rules": [ - "utm_[a-zA-Z]*=[^&]*(\\?|&(amp;)?)?", - "ga_source=[^&]*(\\?|&(amp;)?)?", - "ga_medium=[^&]*(\\?|&(amp;)?)?", - "ga_term=[^&]*(\\?|&(amp;)?)?", - "ga_content=[^&]*(\\?|&(amp;)?)?", - "ga_campaign=[^&]*(\\?|&(amp;)?)?", - "ga_place=[^&]*(\\?|&(amp;)?)?", - "yclid=[^&]*(\\?|&(amp;)?)?", - "_openstat=[^&]*(\\?|&(amp;)?)?", - "fb_action_ids=[^&]*(\\?|&(amp;)?)?", - "fb_action_types=[^&]*(\\?|&(amp;)?)?", - "fb_ref=[^&]*(\\?|&(amp;)?)?", - "fb_source=[^&]*(\\?|&(amp;)?)?", - "action_object_map=[^&]*(\\?|&(amp;)?)?", - "action_type_map=[^&]*(\\?|&(amp;)?)?", - "action_ref_map=[^&]*(\\?|&(amp;)?)?", - "gs_l=[^&]*(\\?|&(amp;)?)?" + "utm_[a-zA-Z]*=[^&]*(\\/|\\?|&(amp;)?)?", + "ga_source=[^&]*(\\/|\\?|&(amp;)?)?", + "ga_medium=[^&]*(\\/|\\?|&(amp;)?)?", + "ga_term=[^&]*(\\/|\\?|&(amp;)?)?", + "ga_content=[^&]*(\\/|\\?|&(amp;)?)?", + "ga_campaign=[^&]*(\\/|\\?|&(amp;)?)?", + "ga_place=[^&]*(\\/|\\?|&(amp;)?)?", + "yclid=[^&]*(\\/|\\?|&(amp;)?)?", + "_openstat=[^&]*(\\/|\\?|&(amp;)?)?", + "fb_action_ids=[^&]*(\\/|\\?|&(amp;)?)?", + "fb_action_types=[^&]*(\\/|\\?|&(amp;)?)?", + "fb_ref=[^&]*(\\/|\\?|&(amp;)?)?", + "fb_source=[^&]*(\\/|\\?|&(amp;)?)?", + "action_object_map=[^&]*(\\/|\\?|&(amp;)?)?", + "action_type_map=[^&]*(\\/|\\?|&(amp;)?)?", + "action_ref_map=[^&]*(\\/|\\?|&(amp;)?)?", + "gs_l=[^&]*(\\/|\\?|&(amp;)?)?" ], "exceptions": [] }, @@ -120,7 +120,7 @@ "urlPattern": "(https:\\/\\/||http:\\/\\/).*(\\.youtube\\.)\\w{2,}\\/.*", "completeProvider": false, "rules": [ - "feature=[^&]*(\\?|&(amp;)?)?" + "feature=[^&]*(\\/|\\?|&(amp;)?)?" ], "exceptions": [] }, @@ -128,8 +128,8 @@ "urlPattern": "(https:\\/\\/||http:\\/\\/).*(\\.facebook\\.)\\w{2,}\\/.*", "completeProvider": false, "rules": [ - "[a-zA-Z]*ref=[^&]*(\\?|&(amp;)?)?", - "hc_location=[^&]*(\\?|&(amp;)?)?" + "[a-zA-Z]*ref=[^&]*(\\/|\\?|&(amp;)?)?", + "hc_location=[^&]*(\\/|\\?|&(amp;)?)?" ], "exceptions": [] }, @@ -137,7 +137,7 @@ "urlPattern": "(https:\\/\\/||http:\\/\\/).*(\\.imdb\\.com)\\/.*", "completeProvider": false, "rules": [ - "ref_=[^&]*(\\?|&(amp;)?)?" + "ref_=[^&]*(\\/|\\?|&(amp;)?)?" ], "exceptions": [] }