1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:48:00 +01:00

Add help and NEWS entries for :bmark!

This commit is contained in:
Kris Maglione
2008-10-04 19:58:18 +00:00
parent 4b4e578dc3
commit 506838b41d
4 changed files with 11 additions and 7 deletions

View File

@@ -115,10 +115,10 @@ liberator.Buffer = function () //{{{
{
if (filter[0] == "*")
return "@namespace url(" + XHTML + ");\n" + css;
let selectors = filter.map(function (part) (/\/$/.test(part) ? "url-prefix" :
/\/:/.test(part) ? "url"
: "domain")
+ '("' + part.replace(/"/g, "%22") + '")')
let selectors = filter.map(function (part) (/[*]$/.test(part) ? "url-prefix" :
/[\/:]/.test(part) ? "url"
: "domain")
+ '("' + part.replace(/"/g, "%22").replace(/[*]$/, "") + '")')
.join(", ");
return "@namespace url(" + XHTML + ");\n" +
"@-moz-document " + selectors + "{\n" + css + "\n}\n";