mirror of
https://github.com/grocy/grocy.git
synced 2025-08-26 07:23:58 +00:00
Escape DataTable regex searches (fixes #2654)
This commit is contained in:
@@ -18,7 +18,7 @@ $("#product-filter").on("change", function()
|
||||
}
|
||||
else
|
||||
{
|
||||
journalSummaryTable.column(journalSummaryTable.colReorder.transpose(1)).search("^" + text + "$", true, false).draw();
|
||||
journalSummaryTable.column(journalSummaryTable.colReorder.transpose(1)).search("^" + $.fn.dataTable.util.escapeRegex(text) + "$", true, false).draw();
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user