Skip to content

Commit

Permalink
test: fix package tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Nov 2, 2021
1 parent 535fa75 commit f50212e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ export class MarkdownProcessor extends BaseProcessor {
return `${isImage}[${title}](${link})`;
}

return `${isImage}[${title}](${urljoin(prefix, path.normalize(link))})`;
return `${isImage}[${title}](${urljoin(prefix, path.posix.normalize(link))})`;
};

// Replace Markdown links with urls
Expand All @@ -702,7 +702,7 @@ export class MarkdownProcessor extends BaseProcessor {
return all;
}

return all.replace(link, urljoin(prefix, path.normalize(link)));
return all.replace(link, urljoin(prefix, path.posix.normalize(link)));
});

if ((this.gitHubIssueLinking && this.isGitHub) || (this.gitLabIssueLinking && this.isGitLab)) {
Expand Down

0 comments on commit f50212e

Please sign in to comment.