(s string)
| 406 | } |
| 407 | |
| 408 | func 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 |
no outgoing calls
no test coverage detected