duck.utils.wildcard¶
Module Contents¶
Functions¶
Filters a list of strings based on a wildcard pattern. |
API¶
- duck.utils.wildcard.process_wildcards(pattern: str, strings: list[str]) Optional[list[str]][source]¶
Filters a list of strings based on a wildcard pattern.
- Parameters:
pattern – The wildcard pattern to match against.
strings – A list of strings to use
- Returns:
A list of strings that match the pattern.