MCPcopy Index your code
hub / github.com/nikivdev/go / trimMatchingQuotes

Function trimMatchingQuotes

cli/flow/main.go:2978–2987  ·  view source on GitHub ↗
(message string)

Source from the content-addressed store, hash-verified

2976}
2977
2978func trimMatchingQuotes(message string) string {
2979 if len(message) >= 2 {
2980 first := message[0]
2981 last := message[len(message)-1]
2982 if (first == '"' && last == '"') || (first == '\'' && last == '\'') {
2983 return message[1 : len(message)-1]
2984 }
2985 }
2986 return message
2987}
2988
2989func parseGitHubCloneInfo(input string) (string, string, string, error) {
2990 switch {

Callers 1

prepareCommitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected