We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e17de41 commit e4ea6f0Copy full SHA for e4ea6f0
zenoh/src/net/routing/dispatcher/resource.rs
@@ -550,7 +550,7 @@ impl Resource {
550
if suffix.is_empty() {
551
return None;
552
}
553
- let (chunk, remain) = suffix.split_once('/').unwrap_or((suffix, ""));
+ let (chunk, remain) = suffix.split_at(suffix.find('/').unwrap_or(suffix.len()));
554
let child = prefix.children.get(chunk)?;
555
get_best_child_key(child, remain, sid)
556
.or_else(|| get_wire_expr(child, || remain.into(), sid))
0 commit comments