Closed pabigot closed 1 year ago
Why does this test pass?
#[test] fn topic() { let t = mqtt::topic::TopicFilter::new("dmxlight/dmx1/+").unwrap(); assert!(t.is_match("dmxlight/dmx1/btf1/set")); }
Given that the trailing fragment btf1/set contains a delimiter so is not a single-level?
btf1/set
Yeah, that's definitely wrong!
Why does this test pass?
Given that the trailing fragment
btf1/set
contains a delimiter so is not a single-level?