ReplaceSlice replaces usages of `@copilot` in a slice with Copilot's login.
(handles []string)
| 363 | |
| 364 | // ReplaceSlice replaces usages of `@copilot` in a slice with Copilot's login. |
| 365 | func (r *CopilotReplacer) ReplaceSlice(handles []string) []string { |
| 366 | res := make([]string, len(handles)) |
| 367 | for i, h := range handles { |
| 368 | res[i] = r.replace(h) |
| 369 | } |
| 370 | return res |
| 371 | } |