Closed adamlui closed 1 year ago
On the allows CDNs page, the regex is:
^(https?:)?\/\/(cdn|test1|testingcf|fastly|gcore)\.jsdelivr\.net\/gh\/[^/]+\/[^/@]+@[a-f0-9]{40}
However the commit-specific reference for jquery for example is:
https://cdn.jsdelivr.net/gh/jquery/jquery@32b00373b3f42e5cdcb709df53f3b08b7184a944/dist/jquery.min.js
Because the displayed regex only validates up to the end of the 40-length commit hash it fails validation
The URLs on https://greasyfork.org/en/help/cdns are "contains" matches. This URL is already allowed.
On the allows CDNs page, the regex is:
However the commit-specific reference for jquery for example is:
https://cdn.jsdelivr.net/gh/jquery/jquery@32b00373b3f42e5cdcb709df53f3b08b7184a944/dist/jquery.min.js
Because the displayed regex only validates up to the end of the 40-length commit hash it fails validation