From 1af539b86723d065764fc092fa9fb028ab489d17 Mon Sep 17 00:00:00 2001 From: Igor Baiborodine Date: Tue, 7 Jun 2022 08:32:11 -0400 Subject: [PATCH] Update build.go --- pkg/buildcmd/build.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/buildcmd/build.go b/pkg/buildcmd/build.go index 209986f..a4f6878 100644 --- a/pkg/buildcmd/build.go +++ b/pkg/buildcmd/build.go @@ -169,8 +169,8 @@ func (c *buildClient) writeThemesContent() error { } func (c *buildClient) writeThemeContent(k string, m client.Module) error { - re := regexp.MustCompile(`\/v\d+$`) - themeName := strings.ToLower(path.Base(re.ReplaceAllString(k, ""))) + re := regexp.MustCompile(`\/v\d+$`) + themeName := strings.ToLower(path.Base(re.ReplaceAllString(k, ""))) themeDir := filepath.Join(c.contentDir, "themes", themeName) client.CheckErr(os.MkdirAll(themeDir, 0777))