Fix introspection crash when binding on /
This commit is contained in:
parent
83d35c8990
commit
1769c2e0d6
|
@ -181,8 +181,8 @@ class MessageRouter {
|
||||||
|
|
||||||
auto children = callTable.byKey()
|
auto children = callTable.byKey()
|
||||||
.filter!(a => (a.path.startsWith(childPath)) && !a.signal)().map!(
|
.filter!(a => (a.path.startsWith(childPath)) && !a.signal)().map!(
|
||||||
(s) => s.path.chompPrefix(childPath)).map!((s) => s.splitter('/')
|
(s) => s.path.chompPrefix(childPath)).map!((s) => s.findSplit("/")[0])
|
||||||
.front).array().sort().uniq();
|
.array().sort().uniq();
|
||||||
|
|
||||||
foreach (child; children) {
|
foreach (child; children) {
|
||||||
formattedWrite(app, `<node name="%s"/>`, child);
|
formattedWrite(app, `<node name="%s"/>`, child);
|
||||||
|
|
Loading…
Reference in a new issue