Skip to content

Commit 40d27d7

Browse files
committed
Update dash wording to hyphen in name validation
1 parent 7b9c7dc commit 40d27d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ClientCore/CnCNet5/NameValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static string IsNameValid(string name)
2525
return "The first character in the player name cannot be a number.".L10N("Client:ClientCore:NameFirstIsNumber");
2626

2727
if (name[0] == '-')
28-
return "The first character in the player name cannot be a dash ( - ).".L10N("Client:ClientCore:NameFirstIsDash");
28+
return "The first character in the player name cannot be a hyphen ( - ).".L10N("Client:ClientCore:NameFirstIsHyphen");
2929

3030
// Check that there are no invalid chars
3131
char[] allowedCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_[]|\\{}^`".ToCharArray();

0 commit comments

Comments
 (0)