Skip to content

Commit

Permalink
Merge branch 'alisinabh-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rottmann committed Jan 23, 2017
2 parents 539f2f1 + d4a9584 commit 6e4da24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/utils/find_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ FindFiles.prototype.search = function() {
// remove source path prefix
if (self.path !== './') {
files = files.map( function(filename) {
return filename.substr(self.path.length);
if (filename.startsWith(self.path)) {
return filename.substr(self.path.length);
}
return filename;
});
}
}
Expand Down

0 comments on commit 6e4da24

Please sign in to comment.