File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const (
1515var (
1616 // characterNameRegex is used to check if the character name provided is valid
1717 // nowadays Tibia only accepts a-zA-Z, but we have to consider old names
18- characterNameRegex = regexp .MustCompile (`[^\s'\p{L}\-\.\+]` )
18+ characterNameRegex = regexp .MustCompile (`[^\s'\p{L}\-\.\,\ +]` )
1919
2020 // creatureAndSpellNameRegex is used to check if the creature or spell name provided is valid
2121 creatureAndSpellNameRegex = regexp .MustCompile (`[^\s'a-zA-Z]` )
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ func TestNameValidator(t *testing.T) {
5353 "Traicionaron+Al+Mikee" ,
5454 "Antorchita'cachibengala" ,
5555 "Leonardinha-princesinha" ,
56+ "Elessar, the Elfstone" ,
5657 }
5758
5859 for _ , n := range names {
You can’t perform that action at this time.
0 commit comments