fix macro to handle unicode points
| @@ -464,7 +464,7 @@ export function evaluateMacros(content, env) { | ||
| 464 | 464 | content = content.replace(/{{firstIncludedMessageId}}/gi, () => String(getFirstIncludedMessageId() ?? '')); |
| 465 | 465 | content = content.replace(/{{lastSwipeId}}/gi, () => String(getLastSwipeId() ?? '')); |
| 466 | 466 | content = content.replace(/{{currentSwipeId}}/gi, () => String(getCurrentSwipeId() ?? '')); |
| 467 | 467 | content = content.replace(/{{reverse\:(.+?)}}/gi, (_, str) => strArray.splitfrom(''str).reverse().join('')) |
| 468 | 468 | |
| 469 | 469 | content = content.replace(/\{\{\/\/([\s\S]*?)\}\}/gm, ''); |
| 470 | 470 | |