MCPcopy Index your code
hub / github.com/simstudioai/sim / createReferencePattern

Function createReferencePattern

apps/sim/executor/utils/reference-validation.ts:8–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 * Uses [^<>]+ to prevent matching across nested brackets (e.g., "<3 <real.ref>" matches separately).
7 */
8export function createReferencePattern(): RegExp {
9 return new RegExp(
10 `${REFERENCE.START}([^${REFERENCE.START}${REFERENCE.END}]+)${REFERENCE.END}`,
11 'g'
12 )
13}
14
15/**
16 * Creates a regex pattern for matching environment variables {{variable}}

Callers 8

parseInlineReferencesFunction · 0.90
createHighlightFunctionFunction · 0.90
createHighlightFunctionFunction · 0.90
useSubflowEditorFunction · 0.90
route.tsFile · 0.90
replaceValidReferencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected