Humanize returns a copy of the string s that replaces all instance of '-' and '_' with spaces.
(s string)
| 1293 | |
| 1294 | // Humanize returns a copy of the string s that replaces all instance of '-' and '_' with spaces. |
| 1295 | func humanize(s string) string { |
| 1296 | replace := "_-" |
| 1297 | h := func(r rune) rune { |
| 1298 | if strings.ContainsRune(replace, r) { |
| 1299 | return ' ' |
| 1300 | } |
| 1301 | return r |
| 1302 | } |
| 1303 | return strings.Map(h, s) |
| 1304 | } |
| 1305 | |
| 1306 | func requestableReviewersForCompletion(opts *CreateOptions) ([]string, error) { |
| 1307 | httpClient, err := opts.HttpClient() |
no test coverage detected