mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-28 08:46:44 +00:00
Improve error reporting on unexpected HTTP status code
This commit is contained in:
@@ -16,6 +16,21 @@ public static class StringExtensions
|
||||
? str[..charCount]
|
||||
: str;
|
||||
|
||||
public static string ToSpaceSeparatedWords(this string str)
|
||||
{
|
||||
var builder = new StringBuilder(str.Length * 2);
|
||||
|
||||
foreach (var c in str)
|
||||
{
|
||||
if (char.IsUpper(c) && builder.Length > 0)
|
||||
builder.Append(' ');
|
||||
|
||||
builder.Append(c);
|
||||
}
|
||||
|
||||
return builder.ToString();
|
||||
}
|
||||
|
||||
public static IEnumerable<Rune> GetRunes(this string str)
|
||||
{
|
||||
var lastIndex = 0;
|
||||
|
||||
Reference in New Issue
Block a user