diff --git a/.gulp/tasks/icons-accents.ts b/.gulp/tasks/icons-accents.ts index dee9cf8..815c0a7 100644 --- a/.gulp/tasks/icons-accents.ts +++ b/.gulp/tasks/icons-accents.ts @@ -42,7 +42,7 @@ function replaceNameWithAccent(name: string, accentName: string): string { * @returns {string} */ export function replaceSVGColour(filecontent: string, colour: string): string { - return filecontent.replace(new RegExp('.st0\{fill:\s{0,}#([a-zA-Z0-9]{6})|path fill="#([a-zA-Z0-9]{6})"'), ($0, $1, $2) => { + return filecontent.replace(new RegExp('#([a-zA-Z0-9]{6})|fill="#([a-zA-Z0-9]{6})"'), ($0, $1, $2) => { colour = colour.replace('#', ''); diff --git a/.gulp/tasks/icons-variants.ts b/.gulp/tasks/icons-variants.ts index 708ede7..3aa81fd 100644 --- a/.gulp/tasks/icons-variants.ts +++ b/.gulp/tasks/icons-variants.ts @@ -14,7 +14,7 @@ const PACKAGE_JSON: IPackageJSON = require(path.join(process.cwd(), './package.j let variants: IDefaultsThemeVariantColours = getDefaultValues().themeVariantsColours; function writeIconVariant(filepath: string, destpath: string, colour: string): void { - let regexp = new RegExp('.st0\{fill:(#[a-zA-Z0-9]{3,6})') + let regexp = new RegExp('(#[a-zA-Z0-9]{3,6})') filepath = path.join(process.cwd(), PATHS.ICONS, filepath); destpath = path.join(process.cwd(), PATHS.ICONS, destpath); diff --git a/extensions/defaults.json b/extensions/defaults.json index 5d5bef2..95ac495 100644 --- a/extensions/defaults.json +++ b/extensions/defaults.json @@ -29,7 +29,7 @@ "_folder_assets_open" ], "changelog": { - "lastversion": "1.0.5" + "lastversion": "1.1.0" }, "icons": { "theme": {