Skip to content

glob

Functions

  • glob_match - Simple glob matching where * matches any sequence of characters.

Function

Simple glob matching where * matches any sequence of characters.

The wildcard crosses separators: *.example.com matches both api.example.com and deep.api.example.com, and a bare * matches everything.

  • /v1/*/completions matches /v1/chat/completions
fn glob_match(pattern: &str, value: &str) -> bool