Fixes error when trying to create bnetaccount.
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Game.Chat
|
namespace Game.Chat
|
||||||
@@ -164,7 +165,7 @@ namespace Game.Chat
|
|||||||
if (!MoveNext(delimiters))
|
if (!MoveNext(delimiters))
|
||||||
return new ParseStringResult(ParseResult.EndOfString, "");
|
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.Ok, Current);
|
||||||
|
|
||||||
return new ParseStringResult(ParseResult.Error, "");
|
return new ParseStringResult(ParseResult.Error, "");
|
||||||
|
|||||||
Reference in New Issue
Block a user