From adbc97c4f289429ce04ef2c926cc96f664cea293 Mon Sep 17 00:00:00 2001 From: Stephen Tse Date: Thu, 3 Apr 2025 00:07:22 -0700 Subject: [PATCH] Prettier no --- quartz/util/theme.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/quartz/util/theme.ts b/quartz/util/theme.ts index 02e571062..ff4453b9f 100644 --- a/quartz/util/theme.ts +++ b/quartz/util/theme.ts @@ -108,10 +108,10 @@ export interface GoogleFontFile { } const fontMimeMap: Record = { - "truetype": "ttf", - "woff": "woff", - "woff2": "woff2", - "opentype": "otf", + truetype: "ttf", + woff: "woff", + woff2: "woff2", + opentype: "otf", } export async function processGoogleFonts( @@ -121,7 +121,8 @@ export async function processGoogleFonts( processedStylesheet: string fontFiles: GoogleFontFile[] }> { - const fontSourceRegex = /url\((https:\/\/fonts.gstatic.com\/.+(?:\/|(?:kit=))(.+?)[.&].+?)\)\sformat\('(\w+?)'\);/g + const fontSourceRegex = + /url\((https:\/\/fonts.gstatic.com\/.+(?:\/|(?:kit=))(.+?)[.&].+?)\)\sformat\('(\w+?)'\);/g const fontFiles: GoogleFontFile[] = [] let processedStylesheet = stylesheet