From 4e704038ddee4aa9ac236adae144e5ea17e99259 Mon Sep 17 00:00:00 2001 From: hip3r Date: Thu, 24 Oct 2024 11:40:53 +0200 Subject: [PATCH] fix: summary string transformations format (#7221) --- packages/decap-cms-lib-widgets/src/stringTemplate.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/decap-cms-lib-widgets/src/stringTemplate.ts b/packages/decap-cms-lib-widgets/src/stringTemplate.ts index 1675756f1db0..7c49f2a4fff7 100644 --- a/packages/decap-cms-lib-widgets/src/stringTemplate.ts +++ b/packages/decap-cms-lib-widgets/src/stringTemplate.ts @@ -175,6 +175,8 @@ export function compileStringTemplate( RegExp(templateVariablePattern, 'g'), (_full, key: string, _part, filter: string) => { let replacement; + key = key.trim(); + filter = filter.trim(); const explicitFieldReplacement = getExplicitFieldReplacement(key, data); if (explicitFieldReplacement) {