14 lines
293 B
C#
14 lines
293 B
C#
using System.IO;
|
|
|
|
namespace Packages.Rider.Editor.Util
|
|
{
|
|
internal static class StringUtils
|
|
{
|
|
public static string NormalizePath(this string path)
|
|
{
|
|
return path.Replace(Path.DirectorySeparatorChar == '\\'
|
|
? '/'
|
|
: '\\', Path.DirectorySeparatorChar);
|
|
}
|
|
}
|
|
} |