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() {
var search = $.trim($(textbox).val());
var regex = new RegExp(search, "gi");
$(select)
.find("option")
@ -2049,7 +2050,7 @@ $.fn.filterByText = function(textbox) {
if (
$(this)
.text()
.includes(search.toLowerCase()) === true
.match(regex) !== null
) {
$(this).show();
} else {