pub fn matches_name_pattern(pattern: &str, name: &str) -> bool
Matches an exact name or a prefix pattern ending in *.
*