From 3d98049f98c695429ffbb9f7d73c5ab23deeecb1 Mon Sep 17 00:00:00 2001 From: Davont Date: Wed, 23 Oct 2024 15:46:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E8=A1=A8=E6=89=93=E5=8C=85?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internals/cli/src/commands/build/build-chart-theme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internals/cli/src/commands/build/build-chart-theme.ts b/internals/cli/src/commands/build/build-chart-theme.ts index 75ef63286c..7c06c454c1 100644 --- a/internals/cli/src/commands/build/build-chart-theme.ts +++ b/internals/cli/src/commands/build/build-chart-theme.ts @@ -28,7 +28,7 @@ const changeTheme = () => { let content = fs.readFileSync(filePath, 'utf-8') // 替换 process.env.VAR_NAME 为对应主题的值 - content = content.replace(/option\.theme\s=\s'[a-zA-Z_]+'/g, `option.theme = '${theme}'`) + content = content.replace(/option\.theme\s=\s'[a-zA-Z_-]+'/g, `option.theme = '${theme}'`) // 写入新内容到文件 fs.writeFileSync(filePath, content, 'utf-8')