Skip to content

Commit

Permalink
fix: fix path parsing in generateBadgeUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Sep 13, 2020
1 parent 2762305 commit 2981bb8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function generateBadgeUrl(
repo,
branch,
path: path.posix
.normalize(path.posix.join(...badgePath.split(path.sep)))
.join(...badgePath.split(path.win32.sep))
.replace(/(\/$)|(^\.?\/)/g, ''),
badge
})
Expand Down

0 comments on commit 2981bb8

Please sign in to comment.