Merge pull request #74 from satomitouka/dev-fix-editor

Fix Match modifyURL
This commit is contained in:
WJQSERVER 2025-03-25 23:49:15 +08:00 committed by GitHub
commit b80d25784a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -181,9 +181,9 @@ func modifyURL(url string, host string, cfg *config.Config) string {
return url return url
} }
if matched { if matched {
var u = url
u := strings.TrimPrefix(url, "https://") u := strings.TrimPrefix(u, "https://")
u = strings.TrimPrefix(url, "http://") u = strings.TrimPrefix(u, "http://")
logDump("Modified URL: %s", "https://"+host+"/"+u) logDump("Modified URL: %s", "https://"+host+"/"+u)
return "https://" + host + "/" + u return "https://" + host + "/" + u
} }