diff --git a/content/commands.js b/content/commands.js index 96e9a7b8..d0e80e87 100644 --- a/content/commands.js +++ b/content/commands.js @@ -1307,8 +1307,7 @@ vimperator.Commands = function () //{{{ return; } - var matches = args.match(/^([^\s]+)(?:\s+(.+))?$/); - var [lhs, rhs] = [matches[1], matches[2]]; + var [lhs, rhs] = args.split(/\s+/, 2); var leaderRegexp = //i; if (leaderRegexp.test(lhs))