From 4c1a014d8d55a4e97cb930eb06a0481052538243 Mon Sep 17 00:00:00 2001 From: brendanjbond Date: Tue, 15 Aug 2023 14:42:26 -0500 Subject: [PATCH] revert accidental deletion of templateSettings --- src/utils/Evaluator.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/Evaluator.ts b/src/utils/Evaluator.ts index 00707e0e..6fa09b6c 100644 --- a/src/utils/Evaluator.ts +++ b/src/utils/Evaluator.ts @@ -2,6 +2,11 @@ import * as _ from '@formio/lodash'; // BaseEvaluator is for extending. export class BaseEvaluator { + static templateSettings = { + interpolate: /{{([\s\S]+?)}}/g, + evaluate: /\{%([\s\S]+?)%\}/g, + escape: /\{\{\{([\s\S]+?)\}\}\}/g + }; public static noeval: boolean = false; public static evaluator(func: any, ...params: any) { if (Evaluator.noeval) {