diff --git a/source/ddbus/router.d b/source/ddbus/router.d index d4017a1..9aeb55d 100644 --- a/source/ddbus/router.d +++ b/source/ddbus/router.d @@ -181,8 +181,8 @@ class MessageRouter { auto children = callTable.byKey() .filter!(a => (a.path.startsWith(childPath)) && !a.signal)().map!( - (s) => s.path.chompPrefix(childPath)).map!((s) => s.splitter('/') - .front).array().sort().uniq(); + (s) => s.path.chompPrefix(childPath)).map!((s) => s.findSplit("/")[0]) + .array().sort().uniq(); foreach (child; children) { formattedWrite(app, ``, child);