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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user