From 4439ed7354ca6fe265a90649d273c2af701236ee Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 19 Jul 2011 16:23:56 -0400 Subject: [PATCH] Deanchorify :style regexps more sensibly. --- 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 a68c72f5..70608b9f 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-.]+$)/i.test(part) ? "regexp(" + (".*" + part + ".*").quote() + ")" : + !/^(?:[a-z-]+[:*]|[a-z-.]+$)/i.test(part) ? "regexp(" + (".*(?:" + part + ").*").quote() + ")" : (/[*]$/.test(part) ? "url-prefix" : /[\/:]/.test(part) ? "url" : "domain")