File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
apps/sim/app/api/function/execute Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { type OutputSchema, resolveBlockReference } from '@/executor/utils/block
1818import { formatLiteralForCode } from '@/executor/utils/code-formatting'
1919import {
2020 createEnvVarPattern ,
21+ createReferencePattern ,
2122 createWorkflowVariablePattern ,
2223} from '@/executor/utils/reference-validation'
2324export const dynamic = 'force-dynamic'
@@ -27,10 +28,7 @@ export const MAX_DURATION = 210
2728
2829const logger = createLogger ( 'FunctionExecuteAPI' )
2930
30- const TAG_PATTERN = new RegExp (
31- `${ REFERENCE . START } ([^${ REFERENCE . START } ${ REFERENCE . END } ]+)${ REFERENCE . END } ` ,
32- 'g'
33- )
31+ const TAG_PATTERN = createReferencePattern ( )
3432
3533const E2B_JS_WRAPPER_LINES = 3
3634const E2B_PYTHON_WRAPPER_LINES = 1
You can’t perform that action at this time.
0 commit comments