Skip to content

Commit

Permalink
fix: summary string transformations format (#7221)
Browse files Browse the repository at this point in the history
  • Loading branch information
hip3r committed Oct 24, 2024
1 parent 51eb7e8 commit 4e70403
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/decap-cms-lib-widgets/src/stringTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4e70403

Please sign in to comment.