Skip to content

Commit

Permalink
Merge pull request #743 from gitfool/fix-includeAll
Browse files Browse the repository at this point in the history
Fix root path to work on Mac and Windows
  • Loading branch information
nvoxland committed Feb 14, 2018
2 parents 86827b4 + 1241256 commit 97a9297
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -127,7 +127,12 @@ public int compare(String o1, String o2) {
});

for (String rootPath : getRootPaths()) {
rootPaths.add(rootPath.replaceFirst("^file:", "").replace("\\", "/"));
if (rootPath.matches("file:/[A-Za-z]:/.*")) {
rootPath = rootPath.replaceFirst("file:/", "");
} else {
rootPath = rootPath.replaceFirst("file:", "");
}
rootPaths.add(rootPath.replace("\\", "/"));
}

Set<String> finalReturnSet = new LinkedHashSet<String>();
Expand Down

0 comments on commit 97a9297

Please sign in to comment.