diff --git a/src/lib/fonts.js b/src/lib/fonts.js index af2aec1ad..82fe22fed 100644 --- a/src/lib/fonts.js +++ b/src/lib/fonts.js @@ -280,7 +280,7 @@ async function loadFont(name) { } // Get all URL font references - const urls = [...css.matchAll(/url\((.*?)\)/g)].map((match) => match[1]); + const urls = [...css.matchAll(/\burl\(([^)]*)\)/g)].map((match) => match[1]); // Download and replace URLs for (const url of urls) {