Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 6e4da24

Browse files
committed
Merge branch 'alisinabh-master'
2 parents 539f2f1 + d4a9584 commit 6e4da24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/utils/find_files.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ FindFiles.prototype.search = function() {
135135
// remove source path prefix
136136
if (self.path !== './') {
137137
files = files.map( function(filename) {
138-
return filename.substr(self.path.length);
138+
if (filename.startsWith(self.path)) {
139+
return filename.substr(self.path.length);
140+
}
141+
return filename;
139142
});
140143
}
141144
}

0 commit comments

Comments
 (0)