Files
stufflog3/internal/validate/tag.go
T
gisle 926723a12e
continuous-integration/drone/push Build is passing
add item tags to backend
2022-11-19 17:26:42 +01:00

8 lines
112 B
Go
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package validate
import "strings"
func Tag(s string) bool {
return !strings.ContainsAny(s, ",;\t\r\n <>")
}