From 17cea6136a8ee6ca577bbb6036e9d520580eccbd Mon Sep 17 00:00:00 2001 From: Karim H Date: Fri, 21 Mar 2025 13:58:57 -0400 Subject: [PATCH] refactor(path): remove isAbsoluteFilePath function --- quartz/util/path.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/quartz/util/path.ts b/quartz/util/path.ts index 86388a33e..7dde93b05 100644 --- a/quartz/util/path.ts +++ b/quartz/util/path.ts @@ -15,10 +15,6 @@ export function isFilePath(s: string): s is FilePath { return validStart && _hasFileExtension(s) } -export function isAbsoluteFilePath(s: string): s is FilePath { - const parsedUrl = new URL(s) - return !parsedUrl.protocol -} /** Cannot be relative and may not have leading or trailing slashes. It can have `index` as it's last segment. Use this wherever possible is it's the most 'general' interpretation of a slug. */ export type FullSlug = SlugLike<"full">