mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 05:42:29 +02:00
rhs has to be optional or "just to let sleeping dogs lie"
This commit is contained in:
1 parent
0bf59f7b98
commit
cc16a55e38
1 file changed
+2
-1
+2
-1
@@ -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