mirror of
https://github.com/clearlinux/docker.git
synced 2026-11-19 20:33:26 +00:00
stricter regexp for Dockerfile line continuations
This commit is contained in:
+1
-1
@@ -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 ""?
|
||||
|
||||
Reference in New Issue
Block a user