Open gultyayev opened 4 years ago
The point is here
const re = new RegExp(`${blocks[key].start}([\\S\\s]*?)${blocks[key].end}`, 'g');
You should escape spec. chars, one slash coz regex and one as it interpolated strings
volt: { start: '{\\%', end: '\\%}' },
I'm having troubles parsing templates which have expressions like this
{% if balance < 5 %}
. And the parsing is failing pointing to<
.I've tried to change the config to this
But this doesn't seem to help.