Skip to content

Commit

Permalink
sort rel values and update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willnorris committed Nov 15, 2022
1 parent 5b96e84 commit a4e2a08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions microformats.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ func (p *parser) walk(node *html.Node) {
}

if _, ok := p.curData.RelURLs[urlVal]; !ok {
sort.Strings(rels)
p.curData.RelURLs[urlVal] = &RelURL{
Text: getTextContent(node, nil),
Rels: rels,
Expand Down
2 changes: 1 addition & 1 deletion testdata

0 comments on commit a4e2a08

Please sign in to comment.