Skip to content

Commit

Permalink
fix(core): Allow "window" again in expressions (#3474)
Browse files Browse the repository at this point in the history
  • Loading branch information
janober authored Jun 7, 2022
1 parent 73da4c3 commit ca92ff7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/workflow/src/Expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,6 @@ export class Expression {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let returnValue;
try {
if (/([^a-zA-Z0-9"']window[^a-zA-Z0-9"'])/g.test(parameterValue)) {
throw new Error(`window is not allowed`);
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
returnValue = tmpl.tmpl(parameterValue, data);
} catch (error) {
Expand Down

0 comments on commit ca92ff7

Please sign in to comment.