1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 22:37:58 +01:00

using a regex again, but still easier/smarter than before, I think

This commit is contained in:
Marco Candrian
2007-12-07 14:17:18 +00:00
parent 1e6ff58d4c
commit 0bf59f7b98

View File

@@ -1307,7 +1307,7 @@ vimperator.Commands = function () //{{{
return;
}
var [lhs, rhs] = args.split(/\s+/, 2);
var [, lhs, rhs] = args.match(/^(\S+)\s+(.+)$/);
var leaderRegexp = /<Leader>/i;
if (leaderRegexp.test(lhs))