(s string)
| 177 | } |
| 178 | |
| 179 | func isDigit(s string) bool { |
| 180 | return strings.IndexFunc(s, func(c rune) bool { |
| 181 | return c < '0' || c > '9' |
| 182 | }) == -1 |
| 183 | } |
| 184 | |
| 185 | // extendedParseDuration is a more lenient version of parseDuration that allows |
| 186 | // for more flexible input formats and cumulative durations. |