Skip to content

TEMPLATE_VARIABLE_PATTERN

PromptScript API


const TEMPLATE_VARIABLE_PATTERN: RegExp

Defined in: core/src/template.ts:218

Matches {{variable}} and dotted {{namespace.name}} placeholders. Global, so use it with replace or matchAll, which do not share lastIndex.