Skip to content

Commit

Permalink
Merge pull request #22 from formio/FIO-4112-revert-accidental-deletion
Browse files Browse the repository at this point in the history
revert accidental deletion of templateSettings
  • Loading branch information
travist authored Aug 16, 2023
2 parents 3e980ad + 4c1a014 commit c804dc0
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 c804dc0

Please sign in to comment.