Fix introspection crash when binding on /

This commit is contained in:
WebFreak001 2018-03-25 11:26:23 +02:00
parent 83d35c8990
commit 1769c2e0d6

View file

@ -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, `<node name="%s"/>`, child);