Skip to content

Commit

Permalink
Fix referrable information on broken link messages. (#3854)
Browse files Browse the repository at this point in the history
This fixes #3604
  • Loading branch information
srawlins authored Aug 28, 2024
1 parent 66366cd commit b47a0c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/model/package_graph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,9 @@ class PackageGraph with CommentReferable, Nameable {
if (href == null) continue;

hrefMap.putIfAbsent(href, () => {}).add(modelElement);
hrefMap
.putIfAbsent(href.replaceAll(htmlBasePlaceholder, ''), () => {})
.add(modelElement);
}

for (final library in _allLibraries.values) {
Expand Down

0 comments on commit b47a0c2

Please sign in to comment.