mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
fix bring and breez
This commit is contained in:
@@ -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))));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user