Skip to content

Commit

Permalink
fix: Bug under windows on post creation
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Dec 5, 2017
1 parent bd836f1 commit 2984516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/core/utils/slug.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {config} from '../../'

export function clean(str) {
if (typeof str === 'undefined' || str === null) return null
str = str.split(path.sep)
str = str.split('/')
str[str.length - 1] = slugify(decodeURIComponent(str[str.length - 1]))
return str.join('/')
}
Expand Down

0 comments on commit 2984516

Please sign in to comment.