stricter regexp for Dockerfile line continuations

Upstream-commit: 6a4afb7f8eacde9cb81202347258983908a9f7c6
Component: engine
This commit is contained in:
Jason McVetta
2013-09-09 18:23:42 -07:00
parent 9a3ed98cdb
commit 867da1f571

View File

@ -459,7 +459,7 @@ func (b *buildFile) commit(id string, autoCmd []string, comment string) error {
}
// Long lines can be split with a backslash
var lineContinuation = regexp.MustCompile(`\s*\\.*\n`)
var lineContinuation = regexp.MustCompile(`\s*\\\s*\n`)
func (b *buildFile) Build(context io.Reader) (string, error) {
// FIXME: @creack any reason for using /tmp instead of ""?