Skip to main content

ssh_pattern_match

Function ssh_pattern_match 

Source
pub fn ssh_pattern_match(pattern: &str, text: &str) -> bool
Expand description

Match a text string against an SSH host pattern. Supports * (any sequence), ? (single char), [charset] (character class), [!charset]/[^charset] (negated class), [a-z] (ranges) and !pattern (negation).