From 4a2c84b9b120ceeea89beadbf99094d84e97fe75 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 24 Sep 2019 13:59:47 +0200 Subject: [PATCH] Update ThemeSettings.plugin.js --- Plugins/ThemeSettings/ThemeSettings.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/ThemeSettings/ThemeSettings.plugin.js b/Plugins/ThemeSettings/ThemeSettings.plugin.js index df049b34c8..3ea58d023b 100644 --- a/Plugins/ThemeSettings/ThemeSettings.plugin.js +++ b/Plugins/ThemeSettings/ThemeSettings.plugin.js @@ -117,7 +117,7 @@ class ThemeSettings { getThemeVars (css) { let vars = css.split(":root"); if (vars.length > 1) { - vars = vars[1].replace(/\/\*[^\/]+?\n[^\/]+?\*\//g, "").replace(/\t\(/g, " (").replace(/\t| {2,}/g, "").replace(/\n\/\*.*?\*\//g, "").replace(/[\n\r]/g, ""); + vars = vars[1].replace(/\/\*[^\/]+?\n[^\/]+?\*\//g, "").replace(/\t\(/g, " (").replace(/\t| {2,}/g, "").replace(/\n\/\*.*?\*\//g, "").replace(/\r/g, "").replace(/\t+\n/g, "\n").replace(/\n[^-]+[^\n]+\n/g, "\n").replace(/\n/g, ""); vars = vars.split("{"); vars.shift(); vars = vars.join("{").replace(/\s*(:|;|--|\*)\s*/g, "$1");