diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-26 04:45:59 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-28 14:22:21 +0300 |
commit | 3cf1ffebabf0f6a862ea80cd9cf14adbd073b3ef (patch) | |
tree | 59cd69ac0e33d127a0dbae8d4c92805de514981f /lib/path.js | |
parent | 4c4ad120c57595b39bc4407f121ab689bb9ac846 (diff) |
path: fix win32 parse regression
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 <info@bnoordhuis.nl>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'lib/path.js')
-rw-r--r-- | lib/path.js | 1 |
1 files changed, 1 insertions, 0 deletions
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 |