MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / escapePackageDelimiters

Function escapePackageDelimiters

pkg/packages/packages.go:264–273  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

262}
263
264func escapePackageDelimiters(s string) string {
265 var result strings.Builder
266 for _, ch := range s {
267 if ch == ':' || ch == '/' || ch == '=' {
268 result.WriteRune('\\')
269 }
270 result.WriteRune(ch)
271 }
272 return result.String()
273}
274
275func isEscapableDelimiter(b byte) bool {
276 return b == ':' || b == '/' || b == '=' || b == '\\'

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected