From fe2986bf703c41e772e8bc97018a9f45d30c37fd Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 22 Oct 2007 06:39:59 +0000 Subject: [PATCH] use a regexp literal for matching the leader token in :map --- content/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/commands.js b/content/commands.js index adcd7ba2..f6012119 100644 --- a/content/commands.js +++ b/content/commands.js @@ -792,7 +792,7 @@ vimperator.Commands = function() //{{{ var matches = args.match(/^([^\s]+)(?:\s+(.+))?$/) var [lhs, rhs] = [matches[1], matches[2]]; - var leader_reg = new RegExp('', 'i'); + var leader_reg = //i; if (leader_reg.test(lhs)) {