Adjust variable marker to ignore {:else}
This commit is contained in:
parent
4e86fc1656
commit
8ddf6fe221
@ -1,5 +1,5 @@
|
|||||||
// the regexps below are shared, so they shoudn't have state (no 'g' flag)
|
// 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 ifStartMarkerRegex = /{#if\s+([^}]+?)\s*}/;
|
||||||
export const elseMarker = '{:else}'
|
export const elseMarker = '{:else}'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user