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

Function getFormat

internal/core/format.go:128–136  ·  view source on GitHub ↗
(ext string)

Source from the content-addressed store, hash-verified

126}
127
128func getFormat(ext string) string {
129 for r, f := range FormatByExtension {
130 m, _ := regexp.MatchString(r, ext)
131 if m {
132 return f[1]
133 }
134 }
135 return ""
136}
137
138func GetNormedExt(ext string) string {
139 for r, f := range FormatByExtension {

Callers 1

FormatFromExtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…