pub fn glob_match(pattern: &str, path: &str) -> bool
Whether path matches a glob: **, *, ?, […], {a,b} and the extglobs ?(…), @(…), +(…), *(…) (vitest and jest defaults use them).
path
**
*
?
[…]
{a,b}
?(…)
@(…)
+(…)
*(…)