mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-06 11:45:47 +01:00
Deanchorify :style regexps more sensibly.
This commit is contained in:
@@ -74,7 +74,7 @@ update(Sheet.prototype, {
|
|||||||
return preamble + css;
|
return preamble + css;
|
||||||
|
|
||||||
let selectors = filter.map(function (part)
|
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-prefix" :
|
||||||
/[\/:]/.test(part) ? "url"
|
/[\/:]/.test(part) ? "url"
|
||||||
: "domain")
|
: "domain")
|
||||||
|
|||||||
Reference in New Issue
Block a user