Skip to content

Commit

Permalink
Storyshots: Escape Windows fileNames (#9061)
Browse files Browse the repository at this point in the history
Storyshots: Escape Windows fileNames
  • Loading branch information
shilman authored Dec 5, 2019
2 parents c68a113 + f623cd1 commit 1f4d7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/storyshots/storyshots-core/injectFileName.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
return `${code};
if(exports.default != null) {
exports.default.parameters = exports.default.parameters || {};
exports.default.parameters.fileName = '${fileName}';
exports.default.parameters.fileName = '${fileName.replace(/\\/g, '\\\\')}';
}
`;
},
Expand Down

0 comments on commit 1f4d7a1

Please sign in to comment.