Skip to main content

matches_glob

Function matches_glob 

Source
pub fn matches_glob(pattern: &str, name: &str) -> bool
Expand description

Match name against a glob-like pattern where * is a wildcard matching any run of characters (including empty). No character classes, escapes, or ?.

Examples:

  • get_* matches get_issues, get_merge_requests
  • *_issue matches create_issue, update_issue
  • * matches everything
  • exact matches only exact