Skip to content

Commit b7a2f2a

Browse files
committed
Fix find files without source dir.
1 parent e52de0a commit b7a2f2a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/utils/find_files.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ FindFiles.prototype.search = function() {
134134
}
135135

136136
// remove source path prefix
137-
files = files.map( function(filename) {
138-
return filename.substr(self.path.length)
139-
})
137+
if (self.path !== './') {
138+
files = files.map( function(filename) {
139+
return filename.substr(self.path.length)
140+
})
141+
}
140142
}
141143

142144
return files;

0 commit comments

Comments
 (0)