normalizeLine removes leading/trailing whitespace and strips any leading '+' or '-' diff marker.
(s string)
| 312 | // normalizeLine removes leading/trailing whitespace and strips any leading |
| 313 | // '+' or '-' diff marker. |
| 314 | func normalizeLine(s string) string { |
| 315 | s = strings.TrimSpace(s) |
| 316 | s = strings.TrimPrefix(s, "+") |
| 317 | s = strings.TrimPrefix(s, "-") |
| 318 | return strings.TrimSpace(s) |
| 319 | } |
no outgoing calls