Skip to content

Commit 3d98049

Browse files
committed
fix: 图表打包指令修改
1 parent 812c1ca commit 3d98049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internals/cli/src/commands/build/build-chart-theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const changeTheme = () => {
2828
let content = fs.readFileSync(filePath, 'utf-8')
2929

3030
// 替换 process.env.VAR_NAME 为对应主题的值
31-
content = content.replace(/option\.theme\s=\s'[a-zA-Z_]+'/g, `option.theme = '${theme}'`)
31+
content = content.replace(/option\.theme\s=\s'[a-zA-Z_-]+'/g, `option.theme = '${theme}'`)
3232

3333
// 写入新内容到文件
3434
fs.writeFileSync(filePath, content, 'utf-8')

0 commit comments

Comments
 (0)