We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07719f commit 1d0cd61Copy full SHA for 1d0cd61
packages/decap-cms-lib-widgets/src/stringTemplate.ts
@@ -36,8 +36,8 @@ const filters = [
36
];
37
38
const FIELD_PREFIX = 'fields.';
39
-const templateContentPattern = '([^}{|]+)';
40
-const filterPattern = '( \\| ([^}{]+))?';
+const templateContentPattern = ' *([^}{| ]+)';
+const filterPattern = '( \\| ([^}{]+?))? *';
41
const templateVariablePattern = `{{${templateContentPattern}${filterPattern}}}`;
42
43
// prepends a Zero if the date has only 1 digit
0 commit comments