Improved: Google Font detection (#332)

This commit is contained in:
nobody 2021-04-01 07:01:52 +02:00
parent 1d921b5c31
commit b6e188f0cc
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 2 additions and 1 deletions

View File

@ -199,7 +199,7 @@ const IconType = {
};
const Regex = {
'GOOGLE_FONTS': /fonts\.(googleapis|gstatic)\.com\/.*\?family=(?!.*Material\+Icons.*).*/,
'GOOGLE_FONTS': /fonts\.(googleapis|gstatic)\.com\/.*(?!.*Material\+Icons.*).*/,
'GOOGLE_MATERIAL_ICONS': /fonts\.googleapis\.com\/.*\?family=.*Material\+Icons/,
'JSDELIVR_COMBINE': /cdn\.jsdelivr\.net.*\/combine.*jquery.*hogan.*algoliasearch.*autocomplete.*/,
'BOOTSTRAP_DATEPICKER_3': /\/bootstrap-datepicker3.*\.css/,

View File

@ -37,6 +37,7 @@
<li>Added: lightcase v2.5.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/338">#338</a>)</li>
<li>Improved mapping: Font Awesome (cdn.jsdelivr.net) (<a href="https://codeberg.org/nobody/LocalCDN/issues/338">#338</a>)</li>
<li>Added: animejs v3.2.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/338">#338</a>)</li>
<li>Improved: Google Font detection (<a href="https://codeberg.org/nobody/LocalCDN/issues/332">#332</a>)</li>
</ul>
<div id="generator-section">
<div class="topic-label">