neutralts::utilsFunction wildcard_match
Source pub fn wildcard_match(text: &str, pattern: &str) -> bool
Expand description
Performs a wildcard matching between a text and a pattern.
Used in bif “allow” and “declare”
§Arguments
text
: The text to match against the pattern.
pattern
: The pattern containing wildcards (‘.’, ‘?’, ‘*’, ‘~’).
§Returns
true
if the text matches the pattern, otherwise false
.