The documentation actually serves as an example for this:
$("select").select2({
matcher: function(term, text) {
return text.toUpperCase().indexOf(term.toUpperCase())==0;
}
});
The above connector is case insensitive, calls are deleted for case sensitivity .toUpperCase().
source
share