From c22e7d38d06f942fdbf3e5f6970458e4457b2a3b Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 17 Nov 2009 20:45:09 +1100 Subject: [PATCH] Fix command spec parsing. "!" is a valid command name. --HG-- extra : rebase_source : 3c99e0524fb81b84ebcf1546026fcb102ec9c6c7 --- common/content/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/commands.js b/common/content/commands.js index dc4410bc..0b15f55e 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -224,7 +224,7 @@ const Command = Class("Command", { */ parseSpecs: function parseSpecs(specs) { return specs.map(function (spec) { - let [, head, tail] = spec.match(/(\w+)(?:\[(.*)])?/); + let [, head, tail] = spec.match(/([^[]+)(?:\[(.*)])?/); return tail ? [head + tail, head] : [head]; }); }