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>
This commit is contained in:
Ruben Bridgewater committed 2019-03-28 12:22:21 +01:00
1 parent 4c4ad120c5
commit 3cf1ffebab
2 files changed
+2

No files matched your search

+1
View File
@@ -51,6 +51,7 @@ const winPaths = [
];
const winSpecialCaseParseTests = [
['t', { base: 't', name: 't', root: '', dir: '', ext: '' }],
['/foo/bar', { root: '/', dir: '/foo', base: 'bar', ext: '', name: 'bar' }],
];