Skip to content

Commit 440e563

Browse files
authored
fix: update regex for template evaluation (#690)
1 parent d02ac20 commit 440e563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/frontend/src/api/utils/customDataUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export const evaluateTranslationTemplate: (
216216
template: string,
217217
data: TCustomItem
218218
) => string = (template, data) => {
219-
const TEMPLATE_REGEX = /\{\{(\w+)\}\}/g;
219+
const TEMPLATE_REGEX = /\{\{([^\}]+)\}\}/g;
220220
if (!TEMPLATE_REGEX.test(template)) {
221221
const value = getValueByPath(data, template);
222222
if (value === undefined) {

0 commit comments

Comments
 (0)