mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-02 23:23:30 +02:00
rhs has to be optional or "just to let sleeping dogs lie"
This commit is contained in:
@@ -1307,7 +1307,8 @@ vimperator.Commands = function () //{{{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var [, lhs, rhs] = args.match(/^(\S+)\s+(.+)$/);
|
// ?:\s+ <- don't remember; (...)? optional = rhs
|
||||||
|
var [, lhs, rhs] = args.match(/(\S+)(?:\s+(.+))?/);
|
||||||
var leaderRegexp = /<Leader>/i;
|
var leaderRegexp = /<Leader>/i;
|
||||||
|
|
||||||
if (leaderRegexp.test(lhs))
|
if (leaderRegexp.test(lhs))
|
||||||
|
|||||||
Reference in New Issue
Block a user