Skip to content

Standardise wildcard matching  #11334

@clintongormley

Description

@clintongormley

With the new path_filter parameter (#10980) we support wildcards with * matching a single "segment" of the path and ** matching multiple segments.

Currently we use slightly different simple wildcards in a number of other places, such as when looking up field names. Index wildcards also support a leading - to exclude matches.

I'd like to propose that we standardise the syntax across all APIs that use wildcard matching, as follows:

  • * matches zero or more characters up to but not including a period .
  • ** matches all zero or more characters including a period
  • multiple patterns can be separated by a comma ,
  • any pattern can be preceded by a + to include matches (the default if not specified) or a - to exclude matches
  • it should be possible to escape any of these characters: *, +, -, ,, \ with a preceding \

Relates to #11294

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions