From 955ee4185b89fa18c9ee115e82d0bfb08b98f6df Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 22 May 2009 22:18:10 -0400 Subject: [PATCH] Fix things like ":map :", ":map +", but not things like ":map ". Ideas? --- common/content/mappings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/mappings.js b/common/content/mappings.js index 233cbd12..c0202662 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -84,7 +84,7 @@ Map.prototype = { * @param {string} name The name to query. * @returns {boolean} */ - hasName: function (name) this.names.indexOf(name) >= 0, + hasName: function (name) this.names.indexOf(name) >= 0 || this.names.indexOf(name.replace(//g, "$1")) >= 0, /** * Execute the action for this mapping.