0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-08 20:48:39 +00:00

Merge branch 'master' into fix-save-on-load

This commit is contained in:
Trevor Buckner
2026-05-04 11:50:13 -04:00
committed by GitHub
6 changed files with 51 additions and 51 deletions
@@ -182,13 +182,13 @@ export function tokenizeCustomMarkdown(text) {
}
if(lineText.includes('{') && lineText.includes('}')) {
const injectionRegex = /(?:^|[^{\n])({(?=((?:[:=](?:"[\w,\-()#%. ]*"|[\w\-()#%.]*)|[^"':={}\s]*)*))\2})/gm;
const injectionRegex = /(?:^|[^{\n])({(?=((?:[:=](?:"[\w,\-()#%. ]*"|[\w\-()#%.]*)|[^"':={}\s]*)*))\2})/gmd;
let match;
while ((match = injectionRegex.exec(lineText)) !== null) {
tokens.push({
line : lineNumber,
from : match.index,
to : match.index + match[1].length,
from : match.indices[1][0],
to : match.indices[1][1],
type : customTags.injection,
});
}