Update select2.js

Added this at Line No. 888 - to apply the underline style for matching texts/character. When you have a custom format result. the matching texts are not underlined so added this.
var markup=[];
markMatch(formatted, query.term, markup, self.opts.escapeMarkup);
label.html(markup.join(""));