normalizeLine removes leading/trailing whitespace and strips any leading '+' or '-' diff marker.
(s string)
| 299 | // normalizeLine removes leading/trailing whitespace and strips any leading |
| 300 | // '+' or '-' diff marker. |
| 301 | func normalizeLine(s string) string { |
| 302 | s = strings.TrimSpace(s) |
| 303 | s = strings.TrimPrefix(s, "+") |
| 304 | s = strings.TrimPrefix(s, "-") |
| 305 | return strings.TrimSpace(s) |
| 306 | } |
no outgoing calls