From 0bf59f7b98a50b40f44534f9b1ea767693f83223 Mon Sep 17 00:00:00 2001 From: Marco Candrian Date: Fri, 7 Dec 2007 14:17:18 +0000 Subject: [PATCH] using a regex again, but still easier/smarter than before, I think --- content/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/commands.js b/content/commands.js index d0e80e87..d7b726f7 100644 --- a/content/commands.js +++ b/content/commands.js @@ -1307,7 +1307,7 @@ vimperator.Commands = function () //{{{ return; } - var [lhs, rhs] = args.split(/\s+/, 2); + var [, lhs, rhs] = args.match(/^(\S+)\s+(.+)$/); var leaderRegexp = //i; if (leaderRegexp.test(lhs))