mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Revert "Require continuation char to be last char in a line"
This reverts commit 105bc63295
,
which (although correct), resulted in a backward incompatible
change.
We can re-implement this in future, after this changes
goes through a deprecation cycle
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
25879cfa54
commit
57c17882a3
4 changed files with 4 additions and 12 deletions
|
@ -61,7 +61,7 @@ func SetEscapeToken(s string, d *Directive) error {
|
|||
return fmt.Errorf("invalid ESCAPE '%s'. Must be ` or \\", s)
|
||||
}
|
||||
d.EscapeToken = rune(s[0])
|
||||
d.LineContinuationRegex = regexp.MustCompile(`\` + s + `$`)
|
||||
d.LineContinuationRegex = regexp.MustCompile(`\` + s + `[ \t]*$`)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue