Skip to content

Commit

Permalink
Normalise repo paths on Windows before comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis committed Jan 14, 2017
1 parent 679a374 commit 423a216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/filesystem/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class Resource{
const projects = atom.project.getPaths();
const {length} = projects;
for(let i = 0; i < length; ++i){
const projectPath = projects[i];
const projectPath = this.normalisePath(projects[i]);

if(!projectPath)
continue;
Expand Down Expand Up @@ -242,7 +242,7 @@ class Resource{
* @return {String}
*/
normalisePath(input){
input = resolve(input);
input = resolve(input || "");
return "win32" === process.platform
? input.replace(/\\/g, "/")
: input;
Expand Down

0 comments on commit 423a216

Please sign in to comment.