Skip to content

Commit

Permalink
fix: path with separator for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wonknu committed Nov 25, 2016
1 parent 6a5f5b1 commit d0320f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/cms/media/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ export function getThumbsList() {

export function getAssociatedImageFileFromThumb(name) {
var rexMatchImageName = /_(thumb|\d+x\d+)/
var originalName = name.replace(rexMatchImageName, '')
name = path.join(path.sep, name)
var originalName = path.join(path.sep, name.replace(rexMatchImageName, ''))
var imageList = {
thumbFile: name,
originalFile: originalName,
Expand Down

0 comments on commit d0320f0

Please sign in to comment.