mirror of
https://github.com/grocy/grocy.git
synced 2025-08-21 04:43:32 +00:00
Escape DataTable regex searches (fixes #2654)
This commit is contained in:
@@ -32,7 +32,7 @@ $("#product-group-filter").on("change", function()
|
||||
}
|
||||
else
|
||||
{
|
||||
productsTable.column(productsTable.colReorder.transpose(6)).search("^" + value + "$", true, false).draw();
|
||||
productsTable.column(productsTable.colReorder.transpose(6)).search("^" + $.fn.dataTable.util.escapeRegex(value) + "$", true, false).draw();
|
||||
}
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user