Cherry-picked this from #157 as it's a little more critical than the other fixes.
Quoting f.e. 0x0ade/test-a-3 (3rd message from 0x0ade/test-a) was impossible before. The options string was split, [0] was used as the portal name (0x0ade/test) and [1] was used as the ref id (a). This PR replaces that with
var {name, ref} = r.operator.split_nameref(option);
where split_nameref uses everything past the last - as the ref id.
Cherry-picked this from #157 as it's a little more critical than the other fixes.
Quoting f.e.
0x0ade/test-a-3
(3rd message from 0x0ade/test-a) was impossible before. The options string was split, [0] was used as the portal name (0x0ade/test
) and [1] was used as the ref id (a
). This PR replaces that withwhere
split_nameref
uses everything past the last-
as the ref id.