From 3cf1ffebabf0f6a862ea80cd9cf14adbd073b3ef Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 26 Mar 2019 02:45:59 +0100 Subject: path: fix win32 parse regression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the parse function for single character input that are not a path separator. PR-URL: https://github.com/nodejs/node/pull/26912 Fixes: https://github.com/nodejs/node/issues/26911 Reviewed-By: Ben Noordhuis Reviewed-By: Michaƫl Zasso --- lib/path.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/path.js') diff --git a/lib/path.js b/lib/path.js index 6ac65cfe4a7..9ac877eabca 100644 --- a/lib/path.js +++ b/lib/path.js @@ -830,6 +830,7 @@ const win32 = { ret.root = ret.dir = path; return ret; } + ret.base = ret.name = path; return ret; } // Try to match a root -- cgit v1.2.3