Skip to content

Commit 03e1ac3

Browse files
committed
use ' replace "
1 parent 7286ae8 commit 03e1ac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function fetchHandler(e) {
7474
path = urlObj.href.substr(urlObj.origin.length + PREFIX.length).replace(/^https?:\/+/, 'https://')
7575

7676
// 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")
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')
7878

7979
const exp1 = /^(?:https?:\/\/)?github\.com\/.+?\/.+?\/(?:releases|archive)\/.*$/i
8080
const exp2 = /^(?:https?:\/\/)?github\.com\/.+?\/.+?\/(?:blob)\/.*$/i

0 commit comments

Comments
 (0)