« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/replacer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/replacer.js b/src/util/replacer.js
index a2df2c3f..d9fd8923 100644
--- a/src/util/replacer.js
+++ b/src/util/replacer.js
@@ -287,7 +287,7 @@ export function postprocessImages(inputNodes) {
 
   let atStartOfLine = true;
 
-  const lastNode = inputNodes[inputNodes.length - 1];
+  const lastNode = inputNodes.at(-1);
 
   for (const node of inputNodes) {
     if (node.type === 'tag') {