MCPcopy Create free account
hub / github.com/vale-cli/vale / Sanitize

Function Sanitize

internal/core/util.go:32–35  ·  view source on GitHub ↗

Sanitize prepares text for our check functions.

(txt string)

Source from the content-addressed store, hash-verified

30
31// Sanitize prepares text for our check functions.
32func Sanitize(txt string) string {
33 // TODO: symbols?
34 return sanitizer.Replace(txt)
35}
36
37// StripANSI removes all ANSI characters from the given string.
38func StripANSI(s string) string {

Callers 3

lintCodeOldMethod · 0.92
TestPrepTextFunction · 0.85
NewFileFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestPrepTextFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…