feat(indexers): sanitize user input (#1420)

This commit is contained in:
ze0s 2024-02-26 18:06:00 +01:00 committed by GitHub
parent f619501d0d
commit c600f41e5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

8
pkg/sanitize/sanitize.go Normal file
View file

@ -0,0 +1,8 @@
package sanitize
import "strings"
func String(str string) string {
str = strings.TrimSpace(str)
return str
}