From 0be00b24a45790c8004ac8cc4ecb5ab05c2a3047 Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Tue, 12 Nov 2024 11:57:07 +0000 Subject: [PATCH 1/3] CLOUDP-283505: Allow empty removals --- tools/cli/internal/changelog/outputfilter/squash.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cli/internal/changelog/outputfilter/squash.go b/tools/cli/internal/changelog/outputfilter/squash.go index ea429c26cd..28b7f8d21b 100644 --- a/tools/cli/internal/changelog/outputfilter/squash.go +++ b/tools/cli/internal/changelog/outputfilter/squash.go @@ -11,7 +11,8 @@ 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 { From bb53201d474ff2afeecb577e97edfedad3465098 Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Tue, 12 Nov 2024 12:01:08 +0000 Subject: [PATCH 2/3] Lint --- tools/cli/internal/changelog/outputfilter/squash.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cli/internal/changelog/outputfilter/squash.go b/tools/cli/internal/changelog/outputfilter/squash.go index 28b7f8d21b..c7205855cd 100644 --- a/tools/cli/internal/changelog/outputfilter/squash.go +++ b/tools/cli/internal/changelog/outputfilter/squash.go @@ -11,7 +11,8 @@ import ( var ( // identifierRegex matches text enclosed in single quotes. // Example: it'll match "value" from the string "added the new required request property 'value'". - // Example: it'll match "" and "/items/dataProcessRegion/region" from the string removed the '' enum value from the '/items/dataProcessRegion/region' response property. + // 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(`'([^']*)'`) ) From a22c1ab58a78d1628aef4601570a4650aa72c8bc Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Tue, 12 Nov 2024 12:02:23 +0000 Subject: [PATCH 3/3] Lint --- tools/cli/internal/changelog/outputfilter/squash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cli/internal/changelog/outputfilter/squash.go b/tools/cli/internal/changelog/outputfilter/squash.go index c7205855cd..75c0c6b635 100644 --- a/tools/cli/internal/changelog/outputfilter/squash.go +++ b/tools/cli/internal/changelog/outputfilter/squash.go @@ -12,7 +12,7 @@ var ( // identifierRegex matches text enclosed in single quotes. // Example: it'll match "value" from the string "added the new required request property 'value'". // Example: it'll match "" and "/items/dataProcessRegion/region" from the string - //"removed the '' enum value from the '/items/dataProcessRegion/region' response property". + // "removed the '' enum value from the '/items/dataProcessRegion/region' response property". identifierRegex = regexp.MustCompile(`'([^']*)'`) )