From 79cb14f9da653e577442c63dd4516db91c25888c Mon Sep 17 00:00:00 2001 From: benoit74 Date: Wed, 7 Aug 2024 08:28:03 +0000 Subject: [PATCH] Add fuzzy rule for iranwire questions --- CHANGELOG.md | 2 +- rules/rules.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 726d86a..1cd3cc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- New fuzzy-rule for cheatography.com (#342), der-postillon.com (#330) +- New fuzzy-rule for cheatography.com (#342), der-postillon.com (#330), iranwire.com (#363) - Properly rewrite redirect target url when present in HTML tag (#237) - New `--encoding-aliases` argument to pass encoding/charset aliases (#331) - Add support for SVG favicon (#148) diff --git a/rules/rules.yaml b/rules/rules.yaml index 935fe90..8987781 100644 --- a/rules/rules.yaml +++ b/rules/rules.yaml @@ -203,3 +203,11 @@ fuzzyRules: fuzzified_url: blogger.googleusercontent.com.fuzzy.replayweb.page/img/b/R29vZ2xl/AVvXsEjlN4LY6kFVwL8-rinDWp3kJp1TowOVD8vq8TP8nl3Lf1sI-hx0DE1GQA1jw7DT7XvK3FjghzJ17_1pvyXyDBAV0vtigJRnFCNfMxnndBnN3NYoXUvKQQsQ7JTGXOSajdo0mNQIv8wss_AxPBMrR4-Dd_EEacV7ZMS3m_IL2dz0WsbbKn7FD7ntsfOe0JUq/s600-rw/tickerzugtier2.jpg.resized - raw_url: blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlN4LY6kFVwL8-rinDWp3kJp1TowOVD8vq8TP8nl3Lf1sI-hx0DE1GQA1jw7DT7XvK3FjghzJ17_1pvyXyDBAV0vtigJRnFCNfMxnndBnN3NYoXUvKQQsQ7JTGXOSajdo0mNQIv8wss_AxPBMrR4-Dd_EEacV7ZMS3m_IL2dz0WsbbKn7FD7ntsfOe0JUq/w72-h72-p-k-no-nu/tickerzugtier2.jpg unchanged: true + - name: iranwire_com + pattern: (iranwire\.com\/questions\/detail\/.*)\?.* + replace: \1 + tests: + - raw_url: iranwire.com/questions/detail/1723?&_=1721804954220 + fuzzified_url: iranwire.com/questions/detail/1723 + - raw_url: iranwire.com/questions/detail/1725?foo=bar&_=1721804454220 + fuzzified_url: iranwire.com/questions/detail/1725