From 6572bd0951d506e4a91366da2ae8d710d5a13a93 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 14 Jan 2024 16:54:45 -0400 Subject: use atOffset() and .at() where appropriate --- src/util/replacer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/replacer.js b/src/util/replacer.js index a2df2c3..d9fd892 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') { -- cgit 1.3.0-6-gf8a5