From b57fd52a0876ae4100b493036f2ef3bb40c119e2 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:58:33 -0500 Subject: [PATCH] [O] Remove unnecessary variable --- scripts/build.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build.ts b/scripts/build.ts index 6db2a149..020275b9 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -140,15 +140,15 @@ function handleFootnote(md: string) { if (!md.includes('[^')) return md // Replace footnote references with HTML superscript tags - md = md.replace(/\[\^(\d+)\](?::\s*(.*))?/g, (match, id, text) => text ? + return md.replace(/\[\^(\d+)\](?::\s*(.*))?/g, (match, id, text) => text ? // Footnote definition `
  • ${text}
  • ` : // Footnote reference `${id}` ) - + // Wrap the footnote definitions in an ordered list - return md.replace(/(
  • )/gs, '
      \n$1\n
    ') } // Copy `people/${dirname}/photos` to `dist/people/${dirname}/`.