diff options
Diffstat (limited to 'ext/js')
-rw-r--r-- | ext/js/templates/sandbox/anki-template-renderer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/templates/sandbox/anki-template-renderer.js b/ext/js/templates/sandbox/anki-template-renderer.js index e4822bee..84f28c1a 100644 --- a/ext/js/templates/sandbox/anki-template-renderer.js +++ b/ext/js/templates/sandbox/anki-template-renderer.js @@ -248,7 +248,7 @@ export class AnkiTemplateRenderer { const argCount = args.length; let value = this._computeValueString(options, context); if (argCount > 3) { - value = `${args.slice(3, -1).join('')}${value}`; + value = `${args.slice(3).join('')}${value}`; } if (argCount > 1) { try { @@ -276,7 +276,7 @@ export class AnkiTemplateRenderer { const argCount = args.length; let value = this._computeValueString(options, context); if (argCount > 2) { - value = `${args.slice(2, -1).join('')}${value}`; + value = `${args.slice(2).join('')}${value}`; } if (argCount > 0) { try { |