1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 03:12:28 +01:00

Deanchorify :style regexps.

This commit is contained in:
Kris Maglione
2011-07-19 16:18:53 -04:00
parent b1cd071812
commit 1716c94365

View File

@@ -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")