fix macro to handle unicode points

This commit is contained in:
kwaroran 2024-07-12 06:26:23 +09:00
parent 5ca23d7866
commit 16f4f58a13
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ export function evaluateMacros(content, env) {
content = content.replace(/{{firstIncludedMessageId}}/gi, () => String(getFirstIncludedMessageId() ?? ''));
content = content.replace(/{{lastSwipeId}}/gi, () => String(getLastSwipeId() ?? ''));
content = content.replace(/{{currentSwipeId}}/gi, () => String(getCurrentSwipeId() ?? ''));
content = content.replace(/{{reverse\:(.+?)}}/gi, (_, str) => str.split('').reverse().join(''))
content = content.replace(/{{reverse\:(.+?)}}/gi, (_, str) => Array.from(str).reverse().join(''))
content = content.replace(/\{\{\/\/([\s\S]*?)\}\}/gm, '');