Fixed spaces in hangman/trivia hints

This commit is contained in:
Kwoth 2017-02-09 20:56:27 +01:00
parent 011309956b
commit a88f056935
2 changed files with 5 additions and 6 deletions

View File

@ -64,13 +64,12 @@ namespace NadekoBot.Modules.Games.Commands.Hangman
public uint MessagesSinceLastPost { get; private set; } = 0;
public string ScrambledWord => "`" + String.Concat(Term.Word.Select(c =>
{
if (c == ' ')
return " \u2000";
if (!(char.IsLetter(c) || char.IsDigit(c)))
return $" {c}";
c = char.ToUpperInvariant(c);
if (c == ' ')
return " ";
return Guesses.Contains(c) ? $" {c}" : " _";
})) + "`";

View File

@ -98,7 +98,7 @@ namespace NadekoBot.Modules.Games.Trivia
if (letters[i] != ' ')
letters[i] = '_';
}
return string.Join(" \x200B", new string(letters).Replace(" ", " \x200B").AsEnumerable());
return string.Join(" ", new string(letters).Replace(" ", " \u2000").AsEnumerable());
}
}
}