Rewrite Rule Replace issues #1792
Replies: 11 comments
-
Miniflux just uses ReplaceAllString from the standard go regex library under the hood in rewrite_functions.go which should have support for unicode. The search term is a regular expression so if you want to match a literal period for example, you'll have to escape it. |
Beta Was this translation helpful? Give feedback.
-
Ok. Thank you for your quick response. |
Beta Was this translation helpful? Give feedback.
-
Can you link an example feed/entry and your rewrite rule where this issue happens? It might be that the website uses html escape codes instead of plain unicode characters, not sure how miniflux handles that |
Beta Was this translation helpful? Give feedback.
-
Yes, sure: Here the link to the RSS feed source: I want to replace this sentence: This is anther feed source: And I want to replace the sentence: Hope that helps you and me. |
Beta Was this translation helpful? Give feedback.
-
I made your tagesspiegel example work with this: |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! Exercise done: |
Beta Was this translation helpful? Give feedback.
-
With one of recent updates my rule for catching youtube urls in iframes from https://www.angrymetalguy.com/feed/ broke
is it possible to escape |
Beta Was this translation helpful? Give feedback.
-
@Tokariew, I have the same problem since a couple of releases. |
Beta Was this translation helpful? Give feedback.
-
@derflasher No, Idea, Tried to escape the Unless someone found solution, or it's fixed, I will stay with pinned miniflux to version 2.0.32 |
Beta Was this translation helpful? Give feedback.
-
@derflasher i was able to rewrite my rules using |
Beta Was this translation helpful? Give feedback.
-
Yes, @Tokariew, it still does not replace full regex 😒 |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use the replace function in order to eliminate sentences (mostly ads).
I'm having trouble with umlaut characters (ä, ö, ü) and , . : ;
Sometimes I quote , and it works, mostly it fails.
What can I do to improve it?
Beta Was this translation helpful? Give feedback.
All reactions