search(.., regex=false, smart=false) returning non-matching hits
search(.., regex=false, smart=false) returning non-matching hits

We have the following DT setup:
/*
* This combined file was created by the DataTables downloader builder:
* https://datatables.net/download
*
* To rebuild or modify this file with the latest versions of the included
* software please visit:
* https://datatables.net/download/#bs5/jszip-3.10.1/pdfmake-0.2.7/dt-2.1.8/af-2.7.0/b-3.1.2/b-colvis-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/date-1.5.4/fc-5.0.4/fh-4.0.1/kt-2.12.1/r-3.0.3/rg-1.5.0/rr-1.5.0/sc-2.4.3/sb-1.8.1/sp-2.3.3/sl-2.1.0/sr-1.4.1
*
* Included libraries:
* JSZip 3.10.1, pdfmake 0.2.7, DataTables 2.1.8, AutoFill 2.7.0, Buttons 3.1.2, Column visibility 3.1.2, HTML5 export 3.1.2, Print view 3.1.2, ColReorder 2.0.4, DateTime 1.5.4, FixedColumns 5.0.4, FixedHeader 4.0.1, KeyTable 2.12.1, Responsive 3.0.3, RowGroup 1.5.0, RowReorder 1.5.0, Scroller 2.4.3, SearchBuilder 1.8.1, SearchPanes 2.3.3, Select 2.1.0, StateRestore 1.4.1
*/
The search of the second column is configured using
** column.search(this.value, regex=false, smart=false).draw();**
Searching for "Aceton" gives me a lot of unrelated hits. Exceptation: only value of "Stoffname" containing "Aceton" exactly would show up.
This question has an accepted answers - jump to answer
Answers
I haven't been able to reproduce the error in this example I'm afraid. Can you please link to a test case showing the issue so I can help to debug the issue.
Allan
Mea culpa.. the 10 year old code injects additional strings using
data-search
and those contain "aceton"...sorry for the noise.No problem. Thanks for the update and good to hear you have it resolved.
Allan