Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #19 from jackyzha0/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 authored Apr 3, 2022
2 parents 5d94c30 + b724e4a commit 3ce3084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ func processTarget(source string) string {
res, _ = url.PathUnescape(res)
res = strings.Split(res, "#")[0]
res = strings.TrimSpace(res)
return UnicodeSanitize(res)
res = UnicodeSanitize(res)
return strings.ReplaceAll(url.PathEscape(res), "%2F", "/")
}

func processSource(source string) string {
Expand Down

0 comments on commit 3ce3084

Please sign in to comment.