Просмотр исходного кода

fix: detect more CDNs for faster updates

tophf 1 год назад
Родитель
Сommit
05292f570b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/common/util.js

+ 1 - 1
src/common/util.js

@@ -271,7 +271,7 @@ const isLocalUrlRe = re`/^(
 )/ix`;
 )/ix`;
 /** Cherry-picked from https://greasyfork.org/en/help/cdns */
 /** Cherry-picked from https://greasyfork.org/en/help/cdns */
 export const isCdnUrlRe = re`/^https:\/\/(
 export const isCdnUrlRe = re`/^https:\/\/(
-  cdn(js)?\.[^/]+ |
+  (\w+-)?cdn(js)?(-\w+)?\.[^/]+ |
   bundle\.run |
   bundle\.run |
   (www\.)?gitcdn\.\w+ |
   (www\.)?gitcdn\.\w+ |
   (
   (