(line string)
| 399 | } |
| 400 | |
| 401 | func stripContinuation(line string) (string, bool) { |
| 402 | if strings.HasSuffix(line, "\\") { |
| 403 | return strings.TrimSpace(strings.TrimSuffix(line, "\\")), true |
| 404 | } |
| 405 | return line, false |
| 406 | } |
| 407 | |
| 408 | func removeInlineComment(line string) string { |
| 409 | // Docker ignores inline comments preceded by whitespace. We implement a light-weight check. |