Skip to main content

glob_match

Function glob_match 

Source
pub fn glob_match(pattern: &str, path: &str) -> bool
Expand description

Whether path matches a glob: **, *, ?, […], {a,b} and the extglobs ?(…), @(…), +(…), *(…) (vitest and jest defaults use them).