From ce4c65f74e425dd7cb491be3a2ba1ea18e924be3 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 12 Apr 2021 06:53:11 +0200 Subject: [PATCH] Improved: Regex for FontAwesome (Fonts only) --- core/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/constants.js b/core/constants.js index c250d421..4fa21d7c 100644 --- a/core/constants.js +++ b/core/constants.js @@ -206,7 +206,7 @@ const Regex = { 'BOOTSTRAP_DATEPICKER': /\/bootstrap-datepicker.*\.css/, 'FONT_AWESOME': /use\.fontawesome\.com\/fa-loader\.css/, 'FONT_AWESOME_WITH_CODE': /use\.fontawesome\.com\/[a-z0-9]{10}\.(js|css)/, - 'FONT_AWESOME_FONTS_ONLY': /\/fontawesome\/(?:\d{1,2}\.){1,3}\d{1,2}\/fonts\//, + 'FONT_AWESOME_FONTS_ONLY': /\/font-?awesome\/(?:\d{1,2}\.){1,3}\d{1,2}\/fonts\//, 'BOOTSTRAP_FONTS_ONLY': /\/bootstrap\/(?:\d{1,2}\.){1,3}\d{1,2}\/fonts\// };