Skip to content

Commit dc41251

Browse files
committed
fix(security): align tag pattern with codebase standard [^<>]+ pattern
Matches createReferencePattern() from reference-validation.ts used by the core executor. Invalid refs handled gracefully by resolveBlockReference.
1 parent 28f3401 commit dc41251

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/api/function/execute

1 file changed

+1
-1
lines changed

apps/sim/app/api/function/execute/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const MAX_DURATION = 210
2828
const logger = createLogger('FunctionExecuteAPI')
2929

3030
const TAG_PATTERN = new RegExp(
31-
`${REFERENCE.START}([a-zA-Z_](?:\\${REFERENCE.PATH_DELIMITER}[a-zA-Z0-9_]+|[a-zA-Z0-9_])*)${REFERENCE.END}`,
31+
`${REFERENCE.START}([^${REFERENCE.START}${REFERENCE.END}]+)${REFERENCE.END}`,
3232
'g'
3333
)
3434

0 commit comments

Comments
 (0)