<commit_before>sap.ui.define([
		'jquery.sap.global',
		'sap/m/MessageToast',
		'sap/ui/core/mvc/Controller',
		'sap/ui/model/json/JSONModel'
	], function(jQuery, MessageToast, Controller, JSONModel) {
	"use strict";

	var PageController = Controller.extend("sap.m.sample.MultiComboBoxCustomFiltering.Page", {

		onInit: function () {
			// set explored app's demo model on this sample
			var oModel = new JSONModel(sap.ui.require.toUrl("sap/ui/demo/mock") + "/products.json");
			this.getView().setModel(oModel);

			this.getView().byId("multiCombo1").setFilterFunction(function(sTerm, oItem) {
				// A case-insensitive 'string contains' filter
				return new RegExp("^" + sTerm, "i").test(oItem.getText());
			});

			this.getView().byId("multiCombo2").setFilterFunction(function(sTerm, oItem) {
				// A case-insensitive 'string contains' filter
				return oItem.getText().indexOf(sTerm) > -1;
			});
		}
	});


	return PageController;

});<commit_msg>[FIX] sap.m.MultiComboBox: Custom filtering sample fixed<commit_after>sap.ui.define([
		'jquery.sap.global',
		'sap/m/MessageToast',
		'sap/ui/core/mvc/Controller',
		'sap/ui/model/json/JSONModel'
	], function(jQuery, MessageToast, Controller, JSONModel) {
	"use strict";

	var PageController = Controller.extend("sap.m.sample.MultiComboBoxCustomFiltering.Page", {

		onInit: function () {
			// set explored app's demo model on this sample
			var oModel = new JSONModel(sap.ui.require.toUrl("sap/ui/demo/mock") + "/products.json");
			this.getView().setModel(oModel);

			this.getView().byId("multiCombo1").setFilterFunction(function(sTerm, oItem) {
				// A case-insensitive 'string contains' filter
				return new RegExp("^" + sTerm, "i").test(oItem.getText());
			});

			this.getView().byId("multiCombo2").setFilterFunction(function(sTerm, oItem) {
				// A case-insensitive 'string contains' filter
				var sItemText = oItem.getText().toLowerCase(),
					sSearchTerm = sTerm.toLowerCase();

				return sItemText.indexOf(sSearchTerm) > -1;
			});
		}
	});


	return PageController;

});
{'fraction_non_alphanumeric': 0.16560820713238886, 'fraction_numerical': 0.0029311187103077674, 'mean_word_length': 4.2378516624040925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6016218', 'n_tokens_mistral': 763, 'n_tokens_neox': 692, 'n_words': 118}