Skip to content

Commit

Permalink
fix:windows bug getting file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Nov 5, 2016
1 parent a9f4321 commit ad4939b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/cms/reference/reference.js
Expand Up @@ -15,7 +15,7 @@ export function getFiles(name = '') {
else {
const files = coreUtils.file.getFilesSync(pathToReferences, true, '.json')
Array.prototype.forEach.call(files, (pathFile) => {
var fileName = pathFile.split('/')
var fileName = pathFile.split(path.sep)
res[fileName[fileName.length - 1]] = cmsData.file.get(pathFile)
})
}
Expand Down

0 comments on commit ad4939b

Please sign in to comment.