miniflux / v2

Minimalist and opinionated feed reader
https://miniflux.app
Apache License 2.0
6.44k stars 702 forks source link

reader/processor: error out for improper rewrite regexp #2672

Closed anpandey closed 3 weeks ago

anpandey commented 1 month ago

It's possible to specify a rewrite regex that validates but doesn't compile such as:

rewrite("(((unmatched-capture-group"|"rewrite)))")

In case we encounter one, exit early instead of letting the server panic.

Do you follow the guidelines?