Skip to content

Commit

Permalink
fixed src="xxx.html" issue for doubi site
Browse files Browse the repository at this point in the history
  • Loading branch information
netptop committed Mar 19, 2020
1 parent 55b3d5d commit 2b81422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ const siteSpecificReplace = {
},
'doubibackup.com': {
' href=([\"\']?)([-a-z0-9_]+?)': ` href=$1/https/doubibackup.com/$2`,
' src=("[-a-z0-9_]+?)': ` src=/https/github.com/https/doubibackup.com/$1`,
}
}

Expand Down
1 change: 1 addition & 0 deletions test/siteproxylocal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ test('doubi issue', async () => {
// console.log(`${JSON.stringify(response.headers)}`)
console.log(`${response.data}`)
expect(response.data.indexOf(`href="3x8ussyf.html"`)).toBe(-1)
expect(response.data.indexOf(` src="5ny9g1s2.gif" `)).toBe(-1)
}, 15000); // should be done within 3 seconds.

test('web.telegram.com href/src issues', async () => {
Expand Down

0 comments on commit 2b81422

Please sign in to comment.