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

Function GetNormedExt

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

Source from the content-addressed store, hash-verified

136}
137
138func GetNormedExt(ext string) string {
139 for r, f := range FormatByExtension {
140 m, _ := regexp.MatchString(r, ext)
141 if m {
142 return f[0]
143 }
144 }
145 return ""
146}

Callers 1

GetLanguageFromExtFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…