From 6a4afb7f8eacde9cb81202347258983908a9f7c6 Mon Sep 17 00:00:00 2001 From: Jason McVetta Date: Mon, 9 Sep 2013 18:23:42 -0700 Subject: [PATCH] stricter regexp for Dockerfile line continuations --- buildfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildfile.go b/buildfile.go index cbb6ecfcef..8ff21bf939 100644 --- a/buildfile.go +++ b/buildfile.go @@ -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 ""?