Merge pull request #38 from WebFreak001/fix-37

Fix introspection crash when binding on `/`
This commit is contained in:
Jan Jurzitza 2018-03-25 11:52:14 +02:00 committed by GitHub
commit 8c7aeeb7d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);