Fixes error when trying to create bnetaccount.

This commit is contained in:
hondacrx
2022-08-26 13:52:19 -04:00
parent e3323e5640
commit 89b92985c5
+2 -1
View File
@@ -17,6 +17,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Game.Chat
@@ -164,7 +165,7 @@ namespace Game.Chat
if (!MoveNext(delimiters))
return new ParseStringResult(ParseResult.EndOfString, "");
if (System.Text.RegularExpressions.Regex.IsMatch(Current, @"^[a-zA-Z]+$"))
if (Current.Any(c => char.IsLetter(c)))
return new ParseStringResult(ParseResult.Ok, Current);
return new ParseStringResult(ParseResult.Error, "");