Skip to content

Commit

Permalink
revert accidental deletion of templateSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanbond committed Aug 15, 2023
1 parent 3e980ad commit 4c1a014
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/Evaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4c1a014

Please sign in to comment.