1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

C#: Enforce Globalization code quality rules

This commit is contained in:
Thaddeus Crews
2024-01-12 15:47:50 -06:00
parent 4ce5e261b3
commit 000d12d237
25 changed files with 105 additions and 100 deletions

View File

@@ -165,7 +165,7 @@ namespace GodotTools.BuildLogger
bool hasSpecialChar = value.IndexOfAny(new[] { '\"', '\n', '\r', delimiter }) != -1;
if (hasSpecialChar)
return "\"" + value.Replace("\"", "\"\"") + "\"";
return "\"" + value.Replace("\"", "\"\"", StringComparison.Ordinal) + "\"";
return value;
}