MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / looksLikeSedScript

Function looksLikeSedScript

tools/bash/sed_validation.go:129–133  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

127}
128
129func looksLikeSedScript(token string) bool {
130 return regexp.MustCompile(`^[sdyapicq]`).MatchString(token) ||
131 regexp.MustCompile(`^[\d,$]`).MatchString(token) ||
132 strings.HasPrefix(token, "/")
133}
134
135func splitSedExpressions(expr string) []string {
136 var parts []string

Callers 2

extractSedExpressionsFunction · 0.85
extractSedFileArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected