Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/validation/tibia.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
var (
// characterNameRegex is used to check if the character name provided is valid
// nowadays Tibia only accepts a-zA-Z, but we have to consider old names
characterNameRegex = regexp.MustCompile(`[^\s'\p{L}\-\.\+]`)
characterNameRegex = regexp.MustCompile(`[^\s'\p{L}\-\.\,\+]`)

// creatureAndSpellNameRegex is used to check if the creature or spell name provided is valid
creatureAndSpellNameRegex = regexp.MustCompile(`[^\s'a-zA-Z]`)
Expand Down
1 change: 1 addition & 0 deletions src/validation/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func TestNameValidator(t *testing.T) {
"Traicionaron+Al+Mikee",
"Antorchita'cachibengala",
"Leonardinha-princesinha",
"Elessar, the Elfstone",
}

for _, n := range names {
Expand Down
Loading