Skip to content

Custom regexs for path filtering #690

Description

@sjrct

It would be useful for me to be able to specify custom regular expressions for path filtering, rather than the existing functionality which just replaces certain special characters with _.

For example, I would like to strip certain characters such as ?s, while replacing " with ', etc.

configparser doesn't really support something like arrays, but one could do multiple lines so long as they are indented, so a config could look something like:

path_filter_regex =
  s/\?//g
  s/"/'/g

or similar.

Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions