Skip to content

Commit 4542b23

Browse files
authored
extending character max length (#194)
older characters can have a longer length fix #193
1 parent fe946ea commit 4542b23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/validation/limits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package validation
33
const (
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

src/validation/validation_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)