Skip to content

Commit

Permalink
use fragment instead of string for url parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
chocolatkey committed Dec 15, 2024
1 parent 0e2dde6 commit d5e8da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/parser/epub/parser_navdoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func parseLiElement(li *xmlquery.Node, filePath url.URL) (link *manifest.Link) {
title = strings.TrimSpace(muchSpaceSuchWowMatcher.ReplaceAllString(first.InnerText(), " "))
}
rawHref := first.SelectAttr("href")
href := url.MustURLFromString("")
href := url.MustURLFromString("#")
if first.Data == "a" && rawHref != "" {
s, err := url.FromEPUBHref(rawHref)
if err == nil {
Expand Down

0 comments on commit d5e8da0

Please sign in to comment.