Skip to content

Commit

Permalink
Support extensions with multiple parts for gitlab (i.e. )
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Martel committed Jun 30, 2018
1 parent e5b8af9 commit c90b647
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backends/gitlab/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export default class GitLab {
entriesByFolder(collection, extension) {
return this.api.listFiles(collection.get("folder"))
.then(({ files, cursor }) =>
this.fetchFiles(files.filter(file => fileExtension(file.name) === extension))
this.fetchFiles(files.filter(files =>
files.filter(file => file.name.endsWith('.' + extension))
)
.then(fetchedFiles => {
const returnedFiles = fetchedFiles;
returnedFiles[CURSOR_COMPATIBILITY_SYMBOL] = cursor;
Expand Down

0 comments on commit c90b647

Please sign in to comment.