mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Style] Remove all links to Path from replacements
This commit is contained in:
@@ -412,15 +412,15 @@ namespace SabreTools.Helper.Tools
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s.Contains(Path.AltDirectorySeparatorChar.ToString()))
|
if (s.Contains("/"))
|
||||||
{
|
{
|
||||||
string[] tempkey = s.Split(Path.AltDirectorySeparatorChar);
|
string[] tempkey = s.Split('/');
|
||||||
return String.Join(Path.AltDirectorySeparatorChar.ToString(), tempkey.Take(tempkey.Length - 1));
|
return String.Join("/", tempkey.Take(tempkey.Length - 1));
|
||||||
}
|
}
|
||||||
else if (s.Contains(Path.DirectorySeparatorChar.ToString()))
|
else if (s.Contains("\\"))
|
||||||
{
|
{
|
||||||
string[] tempkey = s.Split(Path.DirectorySeparatorChar);
|
string[] tempkey = s.Split('\\');
|
||||||
return String.Join(Path.DirectorySeparatorChar.ToString(), tempkey.Take(tempkey.Length - 1));
|
return String.Join("\\", tempkey.Take(tempkey.Length - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
@@ -438,14 +438,14 @@ namespace SabreTools.Helper.Tools
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s.Contains(Path.AltDirectorySeparatorChar.ToString()))
|
if (s.Contains("/"))
|
||||||
{
|
{
|
||||||
string[] tempkey = s.Split(Path.AltDirectorySeparatorChar);
|
string[] tempkey = s.Split('/');
|
||||||
return tempkey.Last();
|
return tempkey.Last();
|
||||||
}
|
}
|
||||||
else if (s.Contains(Path.DirectorySeparatorChar.ToString()))
|
else if (s.Contains("\\"))
|
||||||
{
|
{
|
||||||
string[] tempkey = s.Split(Path.DirectorySeparatorChar);
|
string[] tempkey = s.Split('\\');
|
||||||
return tempkey.Last();
|
return tempkey.Last();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user