Fix bug where Parser.NormalizePath()
did not normalise \
in Unix-based operating systems (#2312)
This commit is contained in:
parent
54dad5effa
commit
7882e5ad1e
1 changed files with 1 additions and 1 deletions
|
@ -1043,7 +1043,7 @@ public static class Parser
|
|||
/// <returns></returns>
|
||||
public static string NormalizePath(string? path)
|
||||
{
|
||||
return string.IsNullOrEmpty(path) ? string.Empty : path.Replace(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar)
|
||||
return string.IsNullOrEmpty(path) ? string.Empty : path.Replace('\\', Path.AltDirectorySeparatorChar)
|
||||
.Replace(@"//", Path.AltDirectorySeparatorChar + string.Empty);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue