Skip to main content

Module glob

Module glob 

Source
Expand description

Glob matching with the defaults of minimatch, which pi uses for package resource patterns and model scopes.

Supported: brace expansion ({a,b}, {1..3}), * and ? within a path segment, [...] classes with ! or ^ negation and ranges, ** across segments, and \ escapes. As in minimatch, *, ? and ** do not match a segment’s leading ., and a leading ./ in the pattern is ignored. Extglobs such as +(a|b) are not supported.

Functions§

matches
Whether text matches pattern.
matches_with
Whether text matches pattern, ignoring case when nocase is set.