From 58d9dc0528cc5d7232ac7a237c98213ff1075f39 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 17 Aug 2023 07:55:52 +0000
Subject: [PATCH] format

---
 quartz/util/path.ts |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/quartz/util/path.ts b/quartz/util/path.ts
index c949474..7394a43 100644
--- a/quartz/util/path.ts
+++ b/quartz/util/path.ts
@@ -72,7 +72,7 @@
 export function isRelativeURL(s: string): s is RelativeURL {
   const validStart = /^\.{1,2}/.test(s)
   const validEnding = !(s.endsWith("/index") || s === "index")
-  return validStart && validEnding && ![".md", ".html"].includes(_getFileExtension(s) ?? "") 
+  return validStart && validEnding && ![".md", ".html"].includes(_getFileExtension(s) ?? "")
 }
 
 /** A server side slug. This is what Quartz uses to emit files so uses index suffixes */
@@ -133,7 +133,7 @@
     slug = slug.replace(/_index$/, "index")
   }
 
-  return slug + ext as ServerSlug
+  return (slug + ext) as ServerSlug
 }
 
 export function transformInternalLink(link: string): RelativeURL {
@@ -239,7 +239,7 @@
     }
 
     // if it's not unique, then it's the absolute path from the vault root
-    return joinSegments(pathToRoot(src), canonicalSlug) + folderTail as RelativeURL
+    return (joinSegments(pathToRoot(src), canonicalSlug) + folderTail) as RelativeURL
   }
 }
 

--
Gitblit v1.10.0