Adjust variable marker to ignore {:else}

This commit is contained in:
David Bruant 2025-05-21 11:28:50 +02:00
parent 4e86fc1656
commit 8ddf6fe221

View File

@ -1,5 +1,5 @@
// the regexps below are shared, so they shoudn't have state (no 'g' flag)
export const variableRegex = /\{([^{#\/]+?)\}/
export const variableRegex = /\{([^{#\/:]+?)\}/
export const ifStartMarkerRegex = /{#if\s+([^}]+?)\s*}/;
export const elseMarker = '{:else}'