Fix IXI command selection
Created by: viossat
If the name of an IXI module is longer that the entire name of a called IXI command, String.substring
raises IndexOutOfBoundsException
.
Steps to reproduce:
- create module
LongNameModule
(must appears before the other module inixiAPI
) - create module
Foo
with the commandbar
- call
Foo.bar
Note that this PR also makes the dot between the module name and the sub-command mandatory (calling Module.subCommand
or ModuleXsubCommand
had the same effect).