Skip to content

Commit

Permalink
fix: silly bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zostay committed Dec 4, 2024
1 parent 64ff4c6 commit 3cf2fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strings/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3cf2fda

Please sign in to comment.