fix bring and breez

This commit is contained in:
Kukks
2024-03-21 16:11:26 +01:00
parent efd72fdae9
commit d67a42a30a
2 changed files with 8 additions and 6 deletions

View File

@@ -33,7 +33,9 @@ public static class StringExtensions
public static string ToHumanReadable(this string str)
{
return string.Join(' ', str.Split('_', '-').Select(part =>
if(string.IsNullOrEmpty(str))
return string.Empty;
return string.Join(' ', str.Split('_', '-').Select(part =>
CultureInfo.CurrentCulture.TextInfo.ToTitleCase(part.ToLower(CultureInfo.CurrentCulture))));
}
}