Skip to content

Commit e33f81b

Browse files
committed
Changed: user input is now lower cased before filtering is done
1 parent 41121f9 commit e33f81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/modules/exchangeRates/controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ define([
168168
*-------------------------------------*/
169169
filterList: function( event ){
170170

171-
var text = this.ui.searchBox.val();
171+
var text = this.ui.searchBox.val().toLowerCase();
172172

173173
this.ratesDisplay.set(
174174
this.ratesCollection.filter( function( model ) { return model.get('country').toLowerCase().indexOf(text) == 0; })

0 commit comments

Comments
 (0)