Fixed spaces in hangman/trivia hints
This commit is contained in:
parent
011309956b
commit
a88f056935
@ -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}" : " _";
|
||||
})) + "`";
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user