From 7f0b7f253a691c1ef07d02e1153a006b60bf8fee Mon Sep 17 00:00:00 2001 From: Bianca Lisle <40155621+blva@users.noreply.github.com> Date: Tue, 12 Nov 2024 12:07:33 +0000 Subject: [PATCH] CLOUDP-283505: Allow empty removals (#275) --- tools/cli/internal/changelog/outputfilter/squash.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/cli/internal/changelog/outputfilter/squash.go b/tools/cli/internal/changelog/outputfilter/squash.go index ea429c26c..75c0c6b63 100644 --- a/tools/cli/internal/changelog/outputfilter/squash.go +++ b/tools/cli/internal/changelog/outputfilter/squash.go @@ -11,7 +11,9 @@ import ( var ( // identifierRegex matches text enclosed in single quotes. // Example: it'll match "value" from the string "added the new required request property 'value'". - identifierRegex = regexp.MustCompile(`'([^']+)'`) + // Example: it'll match "" and "/items/dataProcessRegion/region" from the string + // "removed the '' enum value from the '/items/dataProcessRegion/region' response property". + identifierRegex = regexp.MustCompile(`'([^']*)'`) ) type SquashHandler interface {