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

Function unescape

pkg/executionscommon/executionscommon.go:408–422  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

406}
407
408func unescape(s string) string {
409 result := make([]rune, 0, len(s))
410 escaped := false
411
412 for _, ch := range s {
413 if ch == '\\' && !escaped {
414 escaped = true
415 continue
416 }
417 result = append(result, ch)
418 escaped = false
419 }
420
421 return string(result)
422}
423
424// ScheduledStartTimeAnswerFormatter is passed to the DatePicker so that if the user selects a time within the next
425// one minute after 'now', it will show the answer as the string "Now" rather than the actual datetime string

Callers 1

splitVariableStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected