Make transforming struct field names to dash case region invariant (#2679)

This commit is contained in:
stefansjfw 2020-05-05 11:39:18 +02:00 committed by GitHub
parent f5381ae3e3
commit 9206d1f5f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}
}