Skip to content

Commit

Permalink
Merge pull request #374 from openzim/iranwire_fuzzy
Browse files Browse the repository at this point in the history
Add fuzzy rule for iranwire questions
  • Loading branch information
benoit74 authored Aug 7, 2024
2 parents a69be38 + 79cb14f commit 45cb0c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <meta> HTML tag (#237)
- New `--encoding-aliases` argument to pass encoding/charset aliases (#331)
- Add support for SVG favicon (#148)
Expand Down
8 changes: 8 additions & 0 deletions rules/rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 45cb0c7

Please sign in to comment.