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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user