1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 05:12:28 +01:00

rhs has to be optional or "just to let sleeping dogs lie"

This commit is contained in:
Marco Candrian
2007-12-07 15:33:34 +00:00
parent 0bf59f7b98
commit cc16a55e38

View File

@@ -1307,7 +1307,8 @@ vimperator.Commands = function () //{{{
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;
if (leaderRegexp.test(lhs))