Skip to content

Commit

Permalink
Replace \ with / in linkpath field
Browse files Browse the repository at this point in the history
Fix: #241
  • Loading branch information
isaacs committed Jan 29, 2020
1 parent a069020 commit 01cdaaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/write-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ const WriteEntry = warner(class WriteEntry extends MiniPass {
}

[ONREADLINK] (linkpath) {
this.linkpath = linkpath
this.linkpath = linkpath.replace(/\\/g, '/')
this[HEADER]()
this.end()
}

[HARDLINK] (linkpath) {
this.type = 'Link'
this.linkpath = path.relative(this.cwd, linkpath)
this.linkpath = path.relative(this.cwd, linkpath).replace(/\\/g, '/')
this.stat.size = 0
this[HEADER]()
this.end()
Expand Down

0 comments on commit 01cdaaa

Please sign in to comment.