From 4cd8f9b650c892902524519504dc67d644baae72 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Mon, 19 Feb 2024 19:12:41 +0900 Subject: [PATCH] Update assetRegex in parser.ts --- src/ts/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/parser.ts b/src/ts/parser.ts index feef69f4..faaab6d8 100644 --- a/src/ts/parser.ts +++ b/src/ts/parser.ts @@ -77,7 +77,7 @@ DOMPurify.addHook("uponSanitizeAttribute", (node, data) => { }) -const assetRegex = /{{(raw|img|video|audio|bg|emotion)::(.+?)}}/g +const assetRegex = /{{(raw|img|video|audio|bg|emotion|asset|video-img)::(.+?)}}/g async function parseAdditionalAssets(data:string, char:simpleCharacterArgument|character, mode:'normal'|'back', mode2:'unset'|'pre'|'post' = 'unset'){ const db = get(DataBase)