summaryrefslogtreecommitdiff
path: root/common/modules
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-07-19 16:23:56 -0400
committerKris Maglione <maglione.k@gmail.com>2011-07-19 16:23:56 -0400
commit4439ed7354ca6fe265a90649d273c2af701236ee (patch)
tree803d884dfacf9cc7f04eba7b803e3f8edab09029 /common/modules
parent1716c9436529cc43530a2e90c6f0f78e4d354e8f (diff)
downloadpentadactyl-4439ed7354ca6fe265a90649d273c2af701236ee.tar.gz
Deanchorify :style regexps more sensibly.
Diffstat (limited to 'common/modules')
-rw-r--r--common/modules/styles.jsm2
1 files changed, 1 insertions, 1 deletions
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")