From b98723e1468e6b2dca1e68b3d7f71c69368c3a44 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Sat, 17 Feb 2024 14:08:33 +0800 Subject: [PATCH] fix: trim tag spaces --- internal/collections/domain/collection/subject.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/collections/domain/collection/subject.go b/internal/collections/domain/collection/subject.go index a28270e50..58618a1c8 100644 --- a/internal/collections/domain/collection/subject.go +++ b/internal/collections/domain/collection/subject.go @@ -129,7 +129,7 @@ func (s *Subject) UpdateTags(tags []string) error { return nil } - slice.Map(tags, strings.TrimSpace) + tags = slice.Map(tags, strings.TrimSpace) if lo.ContainsBy(tags, func(item string) bool { return !dam.AllPrintableChar(item) }) { return gerr.ErrInvisibleChar