From e07113f08c0b70210b01bf479e82e3a8a22740e3 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 24 Sep 2019 14:28:08 +0200 Subject: [PATCH] Update ThemeSettings.plugin.js --- Plugins/ThemeSettings/ThemeSettings.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/ThemeSettings/ThemeSettings.plugin.js b/Plugins/ThemeSettings/ThemeSettings.plugin.js index 272f19c051..4568df842c 100644 --- a/Plugins/ThemeSettings/ThemeSettings.plugin.js +++ b/Plugins/ThemeSettings/ThemeSettings.plugin.js @@ -3,7 +3,7 @@ class ThemeSettings { getName () {return "ThemeSettings";} - getVersion () {return "1.1.2";} + getVersion () {return "1.1.3";} getAuthor () {return "DevilBro";} @@ -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(/\r/g, "").replace(/\t+\n/g, "\n").replace(/\n[^\{\}]-+[^\n]+\n/g, "\n").replace(/\n/g, ""); + vars = vars[1].replace(/\/\*[^\/]+?\n[^\/]+?\*\//g, "").replace(/\t\(/g, " (").replace(/\t| {2,}/g, "").replace(/\n\/\*.*?\*\//g, "").replace(/\r/g, "").replace(/[\t\s]+\n/g, "\n").replace(/\n[^\{\}-]+[^\n]+/g, "\n").replace(/\n/g, ""); vars = vars.split("{"); vars.shift(); vars = vars.join("{").replace(/\s*(:|;|--|\*)\s*/g, "$1");