From 611a476224b598c970a2d9a6815a0c7cd8093291 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Mon, 22 Oct 2018 19:20:29 +0200 Subject: Support globs in csproj includes --- modules/mono/editor/GodotSharpTools/StringExtensions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/mono/editor/GodotSharpTools/StringExtensions.cs') diff --git a/modules/mono/editor/GodotSharpTools/StringExtensions.cs b/modules/mono/editor/GodotSharpTools/StringExtensions.cs index b66c86f8ce..b0436d2f18 100644 --- a/modules/mono/editor/GodotSharpTools/StringExtensions.cs +++ b/modules/mono/editor/GodotSharpTools/StringExtensions.cs @@ -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 = ',') -- cgit v1.2.3