From 1716c9436529cc43530a2e90c6f0f78e4d354e8f Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 19 Jul 2011 16:18:53 -0400 Subject: [PATCH] Deanchorify :style regexps. --- common/modules/styles.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/modules/styles.jsm b/common/modules/styles.jsm index b8f8fcbe..a68c72f5 100644 --- a/common/modules/styles.jsm +++ b/common/modules/styles.jsm @@ -74,7 +74,7 @@ update(Sheet.prototype, { return preamble + css; let selectors = filter.map(function (part) - !/^(?:[a-z-]+:|[a-z-.]+$)/.test(part) ? "regexp(" + part.quote() + ")" : + !/^(?:[a-z-]+[:*]|[a-z-.]+$)/i.test(part) ? "regexp(" + (".*" + part + ".*").quote() + ")" : (/[*]$/.test(part) ? "url-prefix" : /[\/:]/.test(part) ? "url" : "domain")