View | Details | Raw Unified | Return to bug 40907
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-2 / +7 lines)
Lines 555-562 function _dt_default_ajax(params) { Link Here
555
                                const search_value = value.length
555
                                const search_value = value.length
556
                                    ? value
556
                                    ? value
557
                                    : global_search;
557
                                    : global_search;
558
559
                                // Escape all regex metachars . * + ? ^ $ { } ( ) | [ ] \
558
                                const regex = new RegExp(
560
                                const regex = new RegExp(
559
                                    `^${search_value}`,
561
                                    "^" +
562
                                        search_value.replace(
563
                                            /[.*+?^${}()|[\]\\]/g,
564
                                            "\\$&"
565
                                        ),
560
                                    "i"
566
                                    "i"
561
                                );
567
                                );
562
                                if (
568
                                if (
563
- 

Return to bug 40907