mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Fix bug where Parser.NormalizePath()
did not normalise \
in Unix-based operating systems (#2312)
This commit is contained in:
parent
54dad5effa
commit
7882e5ad1e
@ -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…
x
Reference in New Issue
Block a user