normalizeLine removes leading/trailing whitespace and strips any leading '+' or '-' diff marker.
(s string)
| 233 | // normalizeLine removes leading/trailing whitespace and strips any leading |
| 234 | // '+' or '-' diff marker. |
| 235 | func normalizeLine(s string) string { |
| 236 | s = strings.TrimSpace(s) |
| 237 | s = strings.TrimPrefix(s, "+") |
| 238 | s = strings.TrimPrefix(s, "-") |
| 239 | return strings.TrimSpace(s) |
| 240 | } |
no outgoing calls