Trim user input so stuff doesn't break

This commit is contained in:
RisaDev
2024-03-03 01:50:48 +03:00
parent c8e38eb9eb
commit 7f18030018
5 changed files with 12 additions and 3 deletions

View File

@@ -16,6 +16,9 @@ internal static class StringExtensions
#if !INCOGNIFY_STRINGS
return str;
#endif
str = str.Trim();
if (str.Contains(" "))
{
var split = str.Split(' ');