Merge pull request #19 from jackyzha0/dev

This commit is contained in:
Jacky Zhao 2022-04-02 20:09:21 -07:00 committed by GitHub
commit 3ce308411e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,8 @@ func processTarget(source string) string {
res, _ = url.PathUnescape(res) res, _ = url.PathUnescape(res)
res = strings.Split(res, "#")[0] res = strings.Split(res, "#")[0]
res = strings.TrimSpace(res) res = strings.TrimSpace(res)
return UnicodeSanitize(res) res = UnicodeSanitize(res)
return strings.ReplaceAll(url.PathEscape(res), "%2F", "/")
} }
func processSource(source string) string { func processSource(source string) string {