Skip to content

Commit

Permalink
fix index json test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollins-g committed Mar 29, 2021
1 parent 2cdc498 commit 952ec99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dartdoc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ class Dartdoc {
found.add(indexPath);
for (Map<String, dynamic> entry in jsonData) {
if (entry.containsKey('href')) {
var entryPath = path.joinAll([origin, entry['href']]);
var entryPath =
path.joinAll([origin, ...path.posix.split(entry['href'])]);
if (!visited.contains(entryPath)) {
_warn(packageGraph, PackageWarning.brokenLink, entryPath,
path.normalize(origin),
Expand Down

0 comments on commit 952ec99

Please sign in to comment.