diff --git a/index.html b/index.html index 96ca994c..f5d39a92 100755 --- a/index.html +++ b/index.html @@ -934,7 +934,7 @@ $("#e18,#e18_2").select2(); <returns>booleantrue if search term matches the text, or false otherwise The default implementation is case insensitive and matches anywhere in ther term: - function(term, text) { return text.toUpperCase().indexOf(term.toUpperCase())>0; } + function(term, text) { return text.toUpperCase().indexOf(term.toUpperCase())>=0; } formatSelectionfunction Function used to render the current selection. diff --git a/select2-latest.html b/select2-latest.html index 5e47e6fe..85215c2a 100755 --- a/select2-latest.html +++ b/select2-latest.html @@ -957,7 +957,7 @@ $("#e18,#e18_2").select2(); <returns>booleantrue if search term matches the text, or false otherwise The default implementation is case insensitive and matches anywhere in ther term: - function(term, text) { return text.toUpperCase().indexOf(term.toUpperCase())>0; } + function(term, text) { return text.toUpperCase().indexOf(term.toUpperCase())>=0; } formatSelectionfunction Function used to render the current selection.