Skip to content

Commit 1c40893

Browse files
authored
fix: the #ddev-description stanza in add-on install actions not showing if it's the first line (#7022) [skip ci]
1 parent e53d3c4 commit 1c40893

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/ddevapp/addons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func ProcessAddonAction(action string, dict map[string]interface{}, bashPath str
146146

147147
// GetAddonDdevDescription returns what follows #ddev-description: in any line in action
148148
func GetAddonDdevDescription(action string) string {
149-
descLines := nodeps.GrepStringInBuffer(action, `[\r\n]+#ddev-description:.*[\r\n]+`)
149+
descLines := nodeps.GrepStringInBuffer(action, `[\r\n]*#ddev-description:.*[\r\n]+`)
150150
if len(descLines) > 0 {
151151
d := strings.Split(descLines[0], ":")
152152
if len(d) > 1 {

0 commit comments

Comments
 (0)