mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 07:08:00 +01:00
using a regex again, but still easier/smarter than before, I think
This commit is contained in:
@@ -1307,7 +1307,7 @@ vimperator.Commands = function () //{{{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var [lhs, rhs] = args.split(/\s+/, 2);
|
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