mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
stricter regexp for Dockerfile line continuations
This commit is contained in:
parent
c01f6df43e
commit
6a4afb7f8e
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ func (b *buildFile) commit(id string, autoCmd []string, comment string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Long lines can be split with a backslash
|
// 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) {
|
func (b *buildFile) Build(context io.Reader) (string, error) {
|
||||||
// FIXME: @creack any reason for using /tmp instead of ""?
|
// FIXME: @creack any reason for using /tmp instead of ""?
|
||||||
|
|
Loading…
Reference in a new issue