MCPcopy Create free account
hub / github.com/gokcehan/lf / wrapModifier

Function wrapModifier

key.go:141–145  ·  view source on GitHub ↗
(s string, mod string)

Source from the content-addressed store, hash-verified

139var reModKey = regexp.MustCompile(`<(c|s|a)-(.+)>`)
140
141func wrapModifier(s string, mod string) string {
142 s = strings.TrimPrefix(s, "<")
143 s = strings.TrimSuffix(s, ">")
144 return fmt.Sprintf("<%s-%s>", mod, s)
145}
146
147func addKeyModifier(s string, mod tcell.ModMask) string {
148 if reModKey.MatchString(s) {

Callers 1

addKeyModifierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected