Update ThemeSettings.plugin.js
This commit is contained in:
parent
4a2c84b9b1
commit
d741d27e61
|
@ -117,7 +117,7 @@ class ThemeSettings {
|
||||||
getThemeVars (css) {
|
getThemeVars (css) {
|
||||||
let vars = css.split(":root");
|
let vars = css.split(":root");
|
||||||
if (vars.length > 1) {
|
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+\n/g, "\n").replace(/\n[^\{\}]-+[^\n]+\n/g, "\n").replace(/\n/g, "");
|
||||||
vars = vars.split("{");
|
vars = vars.split("{");
|
||||||
vars.shift();
|
vars.shift();
|
||||||
vars = vars.join("{").replace(/\s*(:|;|--|\*)\s*/g, "$1");
|
vars = vars.join("{").replace(/\s*(:|;|--|\*)\s*/g, "$1");
|
||||||
|
|
Loading…
Reference in New Issue