spacecowboy / Feeder

Android RSS reader app
GNU General Public License v3.0
1.57k stars 96 forks source link

Block list filter including [word] filters everything #398

Open ghtesting2020 opened 1 week ago

ghtesting2020 commented 1 week ago

Checklist

App version

2.6.33

Where did you get the app from

F-Droid

Android version

15

Device model

No response

First occurred

No response

Steps to reproduce

  1. create block list word like: [review]

Expected behaviour

only items with the matching word in this case "[review]" should be filtered like an item with the title "[review] samsung galaxy" should be blocked. it does not seem to be because of the word review, you can put anything. Something do with the open and close square bracket breaks filter.

Current behaviour

everything gets filtered whether it has "[review]" in the title or not

Logs

No response

spacecowboy commented 1 week ago

Working as designed. The brackets are special. See https://www.sqlitetutorial.net/sqlite-glob/

feeder will add * to start and end as well

ghtesting2020 commented 1 week ago

Working as designed. The brackets are special. See https://www.sqlitetutorial.net/sqlite-glob/

feeder will add * to start and end as well

Is there a workaround? Titles having square brackets are not that uncommon. I still am not understanding how for example "[Review]" even if it had a at begin and end would block the world "politics"? In sql. just means anything/all BUT it would also include what comes after? So [review] should not block "engine"?

spacecowboy commented 1 week ago

Because [review] means: any of the letters r-e-v-i-w. And politics has an i in it. And engine contains an e and an i so would also be blocked.

To match literal brackets, my local AI friend suggested:

[[]review[]]