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

Fix :hi for styles ending in ;

This commit is contained in:
Kris Maglione
2008-10-07 20:43:56 +00:00
parent ebf6f2d33b
commit 851901d553

View File

@@ -1111,7 +1111,7 @@ 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*)?(?:;?$|;)/g, "!important;") + " }";
let css = getCSS(style);
if (highlight.get(key))