Prettier no

This commit is contained in:
Stephen Tse 2025-04-03 00:07:22 -07:00
parent 0abcd609cb
commit adbc97c4f2

View File

@ -108,10 +108,10 @@ export interface GoogleFontFile {
}
const fontMimeMap: Record<string, string> = {
"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