Skip to content

Commit

Permalink
tests: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 7, 2024
1 parent 4efaf8e commit 607d188
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions web/req/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ func (v *SubjectEpisodeCollectionPatch) Validate() error {
}
}

v.Tags = lo.Map(v.Tags, func(item string, index int) string {
return norm.NFKC.String(item)
})
if v.Tags != nil {
v.Tags = lo.Map(v.Tags, func(item string, index int) string {
return norm.NFKC.String(item)
})
}

for _, tag := range v.Tags {
if !dam.ValidateTag(tag) {
Expand Down

0 comments on commit 607d188

Please sign in to comment.