fix macro to handle unicode points
This commit is contained in:
parent
5ca23d7866
commit
16f4f58a13
|
@ -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, '');
|
||||
|
||||
|
|
Loading…
Reference in New Issue