From 7f15781e41120d4e77e45bd0f76d5e6365ea9e93 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 27 Jan 2011 20:58:13 -0500 Subject: [PATCH] Fix regex filters for site-specific mappings. --HG-- branch : key-processing --- common/content/commandline.js | 2 +- common/modules/styles.jsm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/content/commandline.js b/common/content/commandline.js index 27e7f3c0..32999fd6 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -324,7 +324,7 @@ var CommandMode = Class("CommandMode", { if (this.command || stack.pop && commandline.command) { this.onChange(commandline.command); if (this.completions) - this.completions.autocompleteTimer.flush(true); + this.completions.complete(true, false); } }, diff --git a/common/modules/styles.jsm b/common/modules/styles.jsm index bd0f7d03..644b5a5a 100644 --- a/common/modules/styles.jsm +++ b/common/modules/styles.jsm @@ -311,8 +311,8 @@ var Styles = Module("Styles", { matchFilter: function (filter) { if (filter === "*") var test = function test(uri) true; - else if (filter[0] == "^") { - let re = RegExp(filter[0]); + else if (filter[0] === "^") { + let re = RegExp(filter); test = function test(uri) re.test(uri.spec); } else if (/[*]$/.test(filter)) {