Skip to content

Commit f781fc6

Browse files
authoredApr 22, 2023
fix: status optional in windows network drive regex (fix: #12948) (#12949)
1 parent 30fd101 commit f781fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vite/src/node/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ function windowsMappedRealpathSync(path: string) {
574574
}
575575
return realPath
576576
}
577-
const parseNetUseRE = /^(\w+) +(\w:) +([^ ]+)\s/
577+
const parseNetUseRE = /^(\w+)? +(\w:) +([^ ]+)\s/
578578
let firstSafeRealPathSyncRun = false
579579

580580
function windowsSafeRealPathSync(path: string): string {

0 commit comments

Comments
 (0)
Please sign in to comment.