1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Regular expressions added

This commit is contained in:
nobody
2020-08-23 07:30:58 +02:00
parent 15a08b2b5e
commit f2a1eddd85
2 changed files with 17 additions and 8 deletions

View File

@@ -165,6 +165,15 @@ const IconType = {
}
};
const Regex = {
'GOOGLE_FONTS': /fonts\.googleapis\.com\/(css|icons)(?!.*Material\+Icons).*/,
'GOOGLE_MATERIAL_ICONS': /fonts\.googleapis\.com\/(icon|css)\?family=Material\+Icons/,
'JSDELIVR_COMBINE': /cdn\.jsdelivr\.net.*\/combine.*jquery.*hogan.*algoliasearch.*autocomplete.*/,
'BOOTSTRAP_DATEPICKER_3': /\/bootstrap-datepicker3.*\.css/,
'BOOTSTRAP_DATEPICKER': /\/bootstrap-datepicker.*\.css/,
'FONT_AWESOME': /use\.fontawesome\.com\/fa-code\.css/,
'FONT_AWESOME_WITH_CODE': /use\.fontawesome\.com\/[a-z0-9]{10}\.js/
};
// Supported charsets for TextDecoder()
// https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder