We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7286ae8 commit 03e1ac3Copy full SHA for 03e1ac3
index.js
@@ -74,7 +74,7 @@ async function fetchHandler(e) {
74
path = urlObj.href.substr(urlObj.origin.length + PREFIX.length).replace(/^https?:\/+/, 'https://')
75
76
// Convert FastGit To GitHub
77
- path = path.replace("https://raw.fastgit.org", "https://raw.githubusercontent.com").replace("https://hub.fastgit.org", "https://github.com").replace("https://download.fastgit.org", "https://github.com").replace("https://archive.fastgit.org", "https://github.com").replace("https://codeload.fastgit.org", "https://codeload.github.com")
+ path = path.replace('https://raw.fastgit.org', 'https://raw.githubusercontent.com').replace('https://hub.fastgit.org', 'https://github.com').replace('https://download.fastgit.org', 'https://github.com').replace('https://archive.fastgit.org', 'https://github.com').replace('https://codeload.fastgit.org', 'https://codeload.github.com')
78
79
const exp1 = /^(?:https?:\/\/)?github\.com\/.+?\/.+?\/(?:releases|archive)\/.*$/i
80
const exp2 = /^(?:https?:\/\/)?github\.com\/.+?\/.+?\/(?:blob)\/.*$/i
0 commit comments