1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Support globs in csproj includes

This commit is contained in:
Ignacio Etcheverry
2018-10-22 19:20:29 +02:00
parent 454b933106
commit 611a476224
6 changed files with 125 additions and 13 deletions

View File

@@ -36,7 +36,9 @@ namespace GodotSharpTools
public static bool IsAbsolutePath(this string path)
{
return path.StartsWith("/") || path.StartsWith("\\") || path.StartsWith(driveRoot);
return path.StartsWith("/", StringComparison.Ordinal) ||
path.StartsWith("\\", StringComparison.Ordinal) ||
path.StartsWith(driveRoot, StringComparison.Ordinal);
}
public static string CsvEscape(this string value, char delimiter = ',')