diff options
-rw-r--r-- | config/compose.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/compose.go b/config/compose.go index 017b9efb..4b92bddc 100644 --- a/config/compose.go +++ b/config/compose.go @@ -34,5 +34,8 @@ func (c *ComposeConfig) ParseLayout(sec *ini.Section, key *ini.Key) ([][]string, } func (c *ComposeConfig) ParseNoAttachmentWarning(sec *ini.Section, key *ini.Key) (*regexp.Regexp, error) { + if key.String() == "" { + return nil, nil + } return regexp.Compile(`(?im)` + key.String()) } |