From f781fc64b7c2d9569c91c51915b2623b601e8df1 Mon Sep 17 00:00:00 2001 From: Stephen Randall Date: Sat, 22 Apr 2023 16:34:22 -0400 Subject: [PATCH] fix: status optional in windows network drive regex (fix: #12948) (#12949) --- packages/vite/src/node/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/utils.ts b/packages/vite/src/node/utils.ts index 14a016f94311ec..0d9411f901ff53 100644 --- a/packages/vite/src/node/utils.ts +++ b/packages/vite/src/node/utils.ts @@ -574,7 +574,7 @@ function windowsMappedRealpathSync(path: string) { } return realPath } -const parseNetUseRE = /^(\w+) +(\w:) +([^ ]+)\s/ +const parseNetUseRE = /^(\w+)? +(\w:) +([^ ]+)\s/ let firstSafeRealPathSyncRun = false function windowsSafeRealPathSync(path: string): string {