From 05137708b5c48af305f3119deb836b1cd9fed683 Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Thu, 4 Aug 2022 17:58:28 +0200 Subject: [PATCH] Fix typo causing regexp to not be matched correctly --- lib/subsetFonts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/subsetFonts.js b/lib/subsetFonts.js index 5c7124f1..98800c2a 100644 --- a/lib/subsetFonts.js +++ b/lib/subsetFonts.js @@ -603,13 +603,13 @@ async function subsetFonts( $or: [ { to: { - url: googleFontsCssUrlRegex, + url: { $regex: googleFontsCssUrlRegex }, }, }, { type: 'CssFontFaceSrc', from: { - url: googleFontsCssUrlRegex, + url: { $regex: googleFontsCssUrlRegex }, }, }, ],