Skip to content

Commit

Permalink
Resolve bug #184
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed May 17, 2018
1 parent 64edf5e commit 3b5a841
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions src/main/resources/public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ var SearchSourcesFilterComponent = {

if (SearchModel.sourcefiltertext().length !== 0) {
toreturn = _.filter(toreturn, function (e) {
return e.source.toLowerCase().indexOf(SearchModel.sourcefiltertext()) !== -1;
return e.source.toLowerCase().indexOf(SearchModel.sourcefiltertext().toLowerCase()) !== -1;
} );
}

Expand Down Expand Up @@ -802,7 +802,7 @@ var SearchRepositoriesFilterComponent = {

if (SearchModel.repofiltertext().length !== 0) {
toreturn = _.filter(toreturn, function (e) {
return e.repoName.toLowerCase().indexOf(SearchModel.repofiltertext()) !== -1;
return e.repoName.toLowerCase().indexOf(SearchModel.repofiltertext().toLowerCase()) !== -1;
} );
}

Expand Down Expand Up @@ -889,7 +889,7 @@ var SearchLanguagesFilterComponent = {

if (SearchModel.langfiltertext().length !== 0) {
toreturn = _.filter(toreturn, function (e) {
return e.languageName.toLowerCase().indexOf(SearchModel.langfiltertext()) !== -1;
return e.languageName.toLowerCase().indexOf(SearchModel.langfiltertext().toLowerCase()) !== -1;
});
}

Expand Down Expand Up @@ -977,7 +977,7 @@ var SearchOwnersFilterComponent = {

if (SearchModel.ownerfiltertext().length !== 0) {
toreturn = _.filter(toreturn, function (e) {
return e.owner.toLowerCase().indexOf(SearchModel.ownerfiltertext()) !== -1;
return e.owner.toLowerCase().indexOf(SearchModel.ownerfiltertext().toLowerCase()) !== -1;
});
}

Expand Down
Loading

0 comments on commit 3b5a841

Please sign in to comment.