diff --git a/strings/content.go b/strings/content.go index c556ae3..473e230 100644 --- a/strings/content.go +++ b/strings/content.go @@ -25,7 +25,7 @@ func TrimToOnly(s string, chars string) string { for _, r := range s { if strings.ContainsRune(chars, r) { out = append(out, r) - break + continue } } return string(out)