Skip to content

-P / --pattern does not support pipe-separated patterns #60

Description

@Simar-malhotra09

-P / --pattern does not support pipe-separated patterns (e.g. "src|docs"), unlike the updated -I handling as referenced here #59 #57

The glob::Pattern type does not interpret | as an OR operator (per docs: https://docs.rs/glob/latest/glob/struct.Pattern.html).

Currently, pattern_glob is stored as: Option<Pattern>
The proposed change is to make it a Vec<Pattern> and implement a flat mapping similar to the case of the exclusion -I flag and update downstream usage accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions