Skip to content

Commit

Permalink
fix: correct split regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhc committed Aug 23, 2022
1 parent e3268b2 commit 8fd0274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export function isFileReadable(filename: string): boolean {
}
}

const splitFirstDirRE = /(.+)?[\\/](.+)/
const splitFirstDirRE = /(.+?)[\\/](.+)/

/**
* Delete every file and subdirectory. **The given directory must exist.**
Expand Down

0 comments on commit 8fd0274

Please sign in to comment.