Add reverse macro
This commit is contained in:
parent
c3185d34c7
commit
5ca23d7866
|
@ -464,6 +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(/\{\{\/\/([\s\S]*?)\}\}/gm, '');
|
||||
|
||||
|
|
Loading…
Reference in New Issue