Skip to main content

topic_matches

Function topic_matches 

Source
pub fn topic_matches(pattern: &str, topic: &str) -> bool
Expand description

Glob-match a topic name against a configured pattern.

Supports the same trivial pattern vocabulary as the substrate TopicDecl: exact match, or a trailing .* / * wildcard matching any suffix. Returns true on match.