Humanize returns a copy of the string s that replaces all instance of '-' and '_' with spaces.
(s string)
| 1372 | |
| 1373 | // Humanize returns a copy of the string s that replaces all instance of '-' and '_' with spaces. |
| 1374 | func humanize(s string) string { |
| 1375 | replace := "_-" |
| 1376 | h := func(r rune) rune { |
| 1377 | if strings.ContainsRune(replace, r) { |
| 1378 | return ' ' |
| 1379 | } |
| 1380 | return r |
| 1381 | } |
| 1382 | return strings.Map(h, s) |
| 1383 | } |
| 1384 | |
| 1385 | func requestableReviewersForCompletion(opts *CreateOptions) ([]string, error) { |
| 1386 | httpClient, err := opts.HttpClient() |
no test coverage detected