Browse Source

fix: detect more CDNs for faster updates

tophf 1 year ago
parent
commit
05292f570b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.js

+ 1 - 1
src/common/util.js

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