Files
trufflehog/pkg/sanitizer/utf8.go
Amaan Ullah 0fa069c12f Enable errcheck and staticcheck for golangci-lint v2 and resolve all issues (#4924)
* enable errcheck and staticcheck for golangci-lint v2 and resolve all issues

* skip lint on intentional reference of deprecated DetectorType values
2026-05-15 17:07:14 +05:00

10 lines
145 B
Go

package sanitizer
import (
"strings"
)
func UTF8(in string) string {
return strings.ReplaceAll(strings.ToValidUTF8(in, "❗"), "\x00", "")
}