rss-funnel icon indicating copy to clipboard operation
rss-funnel copied to clipboard

Match source against regular expression

Open shouya opened this issue 1 year ago • 0 comments

For endpoints with unspecified source (aka dynamic source), the filters usually only apply to a set of similar webpages (e.g. an endpoint that works for any youtube channel). However, we currently accept any url for dynamic source, which is not ideal if the source isn't expected. To improve it, we can have an optional match_source field where user can specify a regular expression pattern for specifying supported source urls. Then if the provided source doesn't match the pattern, we no longer make the request and report the error nicely back to the user.

shouya avatar Jun 20 '24 00:06 shouya