Upgrade to version 11.0.1 #1
@@ -210,7 +210,8 @@ export function wordpressThemeJson({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const rootContent = themeContent.slice(themeContent.indexOf('{') + 1, themeContent.lastIndexOf('}'))
|
const endIndex = themeContent.lastIndexOf('}');
|
||||||
|
const rootContent = themeContent.slice(themeContent.indexOf('{') + 1, endIndex === -1 ? undefined : endIndex);
|
||||||
const colorVariables = {}
|
const colorVariables = {}
|
||||||
|
|
||||||
const colorVarRegex = /--color-([^:]+):\s*([^;}]+)[;}]?/g
|
const colorVarRegex = /--color-([^:]+):\s*([^;}]+)[;}]?/g
|
||||||
|
|||||||
Reference in New Issue
Block a user