Skip to content

Commit

Permalink
Merge pull request #2 from samiheikki/fix/lowercase-search
Browse files Browse the repository at this point in the history
Fix case sensitive search
  • Loading branch information
Sami Suo-Heikki authored Mar 3, 2017
2 parents 62efa57 + 06f08ec commit 2b1d16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemon-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
}
var filter = e.detail.value;
this._filteredPokemons = this._pokemons.filter(function(pokemon) {
return pokemon.pokemon_species.name.indexOf(filter) === 0 || pokemon.entry_number.toString().indexOf(filter) === 0;
return pokemon.pokemon_species.name.indexOf(filter.toLowerCase()) === 0 || pokemon.entry_number.toString().indexOf(filter) === 0;
});
}
});
Expand Down

0 comments on commit 2b1d16a

Please sign in to comment.