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

Last commit done right (or wrong, as it so happens, given Spidermonkeys buggy regex engine)

This commit is contained in:
Kris Maglione
2008-10-07 21:03:06 +00:00
parent 851901d553
commit 78d9d51434
4 changed files with 11 additions and 18 deletions

View File

@@ -1111,7 +1111,8 @@ liberator.Buffer = function () //{{{
let cssClass = class[1] || ".hl-" + class[0];
let scope = class[2] || highlightDocs;
let getCSS = function (style) cssClass + selectors + " { " + style.replace(/(?:!\s*important\s*)?(?:;?$|;)/g, "!important;") + " }";
let getCSS = function (style) cssClass + selectors +
" { " + style.replace(/(?:!\s*important\s*)?(?:;?\s*$|;)/g, "!important;").replace(";!important;", ";", "g") + " }";
let css = getCSS(style);
if (highlight.get(key))