From 4e459a5661a186515406fe5d84d0aace32dda338 Mon Sep 17 00:00:00 2001 From: "D. Ror" Date: Mon, 6 May 2024 08:30:24 -0400 Subject: [PATCH] Use replaceAll where only first space was being replaced (#3111) --- src/utilities/fontCssUtilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/fontCssUtilities.ts b/src/utilities/fontCssUtilities.ts index 798c8c27bf..c4b3b73b7c 100644 --- a/src/utilities/fontCssUtilities.ts +++ b/src/utilities/fontCssUtilities.ts @@ -34,7 +34,7 @@ export async function fetchCss( let cssUrl = ""; switch (source) { case "local": - cssUrl = `${fontDir}/${font.replace(" ", "")}.css`; + cssUrl = `${fontDir}/${font.replaceAll(" ", "")}.css`; break; case "google": cssUrl = `https://fonts.googleapis.com/css?dispay=swap&family=${font}`;