nautilus_common::msgbus

Function is_matching

source
pub fn is_matching(topic: &Ustr, pattern: &Ustr) -> bool
Expand description

Match a topic and a string pattern pattern can contains - ‘*’ - match 0 or more characters after this ‘?’ - match any character once ‘a-z’ - match the specific character