From bf5c63057575147af8895fb32dc6b8b7b7798b24 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 1 Nov 2008 05:39:48 +0000 Subject: [PATCH] simplify parseSpecs longname/shortname pattern --- content/commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/commands.js b/content/commands.js index f425e2b2..415726bc 100644 --- a/content/commands.js +++ b/content/commands.js @@ -42,6 +42,7 @@ function Command(specs, description, action, extraInfo) //{{{ function parseSpecs(specs) { // Whoever wrote the following should be ashamed. :( + // Good grief! I have no words... -- djk ;-) // let shortNames = longNames = names = []; let names = []; let longNames = []; @@ -49,7 +50,7 @@ function Command(specs, description, action, extraInfo) //{{{ for (let [,spec] in Iterator(specs)) { - let matches = spec.match(/(\w+|!)\[(\w+)\]/); + let matches = spec.match(/(\w+)\[(\w+)\]/); if (matches) {