Skip to content

Commit

Permalink
fix(core): Fix getting archive filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer committed Dec 28, 2023
1 parent 3d729c6 commit 7103045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/build/archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = function archiveTask(options = {}, done) {
let filename = 'archive.zip'
let outDir = dest
// 获取压缩包名
const regex = /(\w+\.\w+)$/
const regex = /(.+\.\w+)$/
if (regex.test(dest)) {
const destArr = dest.split('/')
if (destArr.length === 1) {
Expand Down

0 comments on commit 7103045

Please sign in to comment.