From ca92ff70d7789e7d0af812cff7c7351e499ddfa2 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Tue, 7 Jun 2022 09:24:11 +0200 Subject: [PATCH] fix(core): Allow "window" again in expressions (#3474) --- packages/workflow/src/Expression.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/workflow/src/Expression.ts b/packages/workflow/src/Expression.ts index 7b349efedc908..cb1f20afe5d23 100644 --- a/packages/workflow/src/Expression.ts +++ b/packages/workflow/src/Expression.ts @@ -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) {