Upgrade to version 11.0.1 #1
@@ -210,7 +210,8 @@ export function wordpressThemeJson({
|
||||
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 colorVarRegex = /--color-([^:]+):\s*([^;}]+)[;}]?/g
|
||||
|
||||
Reference in New Issue
Block a user