From 9206d1f5f1f3be6c84d0eaabc88b63b2c0952016 Mon Sep 17 00:00:00 2001 From: stefansjfw <57057282+stefansjfw@users.noreply.github.com> Date: Tue, 5 May 2020 11:39:18 +0200 Subject: [PATCH] Make transforming struct field names to dash case region invariant (#2679) --- src/modules/fancyzones/editor/FancyZonesEditor/StringUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/StringUtils.cs b/src/modules/fancyzones/editor/FancyZonesEditor/StringUtils.cs index 8dc4837d54..027003477b 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/StringUtils.cs +++ b/src/modules/fancyzones/editor/FancyZonesEditor/StringUtils.cs @@ -16,7 +16,7 @@ namespace FancyZonesEditor.Utils return str; } - return string.Concat(str.Select((x, i) => i > 0 && char.IsUpper(x) ? "-" + x.ToString() : x.ToString())).ToLower(); + return string.Concat(str.Select((x, i) => i > 0 && char.IsUpper(x) ? "-" + x.ToString() : x.ToString())).ToLowerInvariant(); } } }