File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package validation
33const (
44 MaxRunesAllowedInACharacterName = 29 // Larggest character name length possible
55 MinRunesAllowedInACharacterName = 2 // Smallest character name length possible
6- MaxRunesAllowedInACharacterNameWord = 14 // Larggest character name word length possible
6+ MaxRunesAllowedInACharacterNameWord = 16 // Larggest character name word length possible (new names only 14, but older ones are longer)
77 MinRunesAllowedInACharacterNameWord = 2 // Smallest character name word length possible
88
99 MaxRunesAllowedInAGuildName = 29 // Larggest guild name length possible
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ func TestNameValidator(t *testing.T) {
7575 ErrorCharacterNameEmpty : "" ,
7676 ErrorCharacterNameTooSmall : "o" ,
7777 ErrorCharacterNameTooBig : "abcabcabcabcabcabcabcabcabcabc" ,
78- ErrorCharacterWordTooBig : "abcabcabcabcabc hello" ,
78+ ErrorCharacterWordTooBig : "abcabcabcabcabcab hello" ,
7979 ErrorCharacterNameIsOnlyWhiteSpace : " " ,
8080 ErrorCharacterNameInvalid : "12" ,
8181 }
@@ -836,7 +836,7 @@ func TestFake(t *testing.T) {
836836
837837 assert .Equal (29 , MaxRunesAllowedInACharacterName )
838838 assert .Equal (2 , MinRunesAllowedInACharacterName )
839- assert .Equal (14 , MaxRunesAllowedInACharacterNameWord )
839+ assert .Equal (16 , MaxRunesAllowedInACharacterNameWord )
840840 assert .Equal (2 , MinRunesAllowedInACharacterNameWord )
841841
842842 assert .Equal (29 , MaxRunesAllowedInAGuildName )
You can’t perform that action at this time.
0 commit comments