minor fix

This commit is contained in:
alejandro.campos@artica.es 2022-04-25 10:16:18 +02:00
parent 0223dd27c7
commit 9adb8bae1d
1 changed files with 2 additions and 1 deletions

View File

@ -2042,6 +2042,7 @@ $.fn.filterByText = function(textbox) {
$(textbox).bind("change keyup", function() { $(textbox).bind("change keyup", function() {
var search = $.trim($(textbox).val()); var search = $.trim($(textbox).val());
var regex = new RegExp(search, "gi");
$(select) $(select)
.find("option") .find("option")
@ -2049,7 +2050,7 @@ $.fn.filterByText = function(textbox) {
if ( if (
$(this) $(this)
.text() .text()
.includes(search.toLowerCase()) === true .match(regex) !== null
) { ) {
$(this).show(); $(this).show();
} else { } else {