fix macro to handle unicode points

16f4f58a13125b8219f393130c1a8d6493e73b03

kwaroran <amasio1234@proton.me>

1 files changed, +1 -1Ignore whitespace
public/scripts/macros.js+1 -1
@@ -464,7 +464,7 @@ export function evaluateMacros(content, env) {
464464 content = content.replace(/{{firstIncludedMessageId}}/gi, () => String(getFirstIncludedMessageId() ?? ''));
465465 content = content.replace(/{{lastSwipeId}}/gi, () => String(getLastSwipeId() ?? ''));
466466 content = content.replace(/{{currentSwipeId}}/gi, () => String(getCurrentSwipeId() ?? ''));
467467 content = content.replace(/{{reverse\:(.+?)}}/gi, (_, str) => strArray.splitfrom(''str).reverse().join(''))
468468
469469 content = content.replace(/\{\{\/\/([\s\S]*?)\}\}/gm, '');
470470