Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 3a9593c

Browse files
Fixing the issue
1 parent 4b0769c commit 3a9593c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Api/IO/NiceIO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private static bool HasNonDotDotLastElement(List<string> stack)
113113

114114
private static string ParseDriveLetter(string path, out string driveLetter)
115115
{
116-
if (path.Length >= 2 && path[1] == ':')
116+
if (path.Length >= 3 && path[1] == ':' && (path[2] == '/' || path[2] == '\\'))
117117
{
118118
driveLetter = path[0].ToString();
119119
return path.Substring(2);

0 commit comments

Comments
 (0)