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