Skip to content

Commit

Permalink
Switch to unix path separators before normalizing path for Windows co…
Browse files Browse the repository at this point in the history
…mpatibility
  • Loading branch information
Timer committed Sep 6, 2017
1 parent b17fa41 commit 014fd4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-error-overlay/src/utils/unmapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function unmap(
}
let { fileName } = frame;
if (fileName) {
fileName = path.normalize(fileName);
fileName = path.normalize(fileName.replace(/[\\]+/g, '/'));
}
if (fileName == null) {
return frame;
Expand Down

0 comments on commit 014fd4d

Please sign in to comment.