Skip to content

Match source against regular expression #115

@shouya

Description

@shouya

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions