http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11502
--- Comment #4 from David Cook <[email protected]> --- (In reply to Jonathan Druart from comment #3) > Hi David, > Could you explain why you match the < and >? > The ^$ are not enough? Sure, Jonathan. It's because DataTables interprets all the data in a table cell as one long string. Sometimes, your string might be <td>BRANCH</td>. Other times, it might be <td>BRANCH<br/>BRANCH1<br/>BRANCH2</td>. If you were to only use ^$, 'BRANCH' would only match the first scenario. It wouldn't match the second, because the string ends with BRANCH2 - not BRANCH. However, we want it to match both scenarios, so we need to include < and >. In fact, there are 4 scenarios I see: 1) ^BRANCH$ (i.e. the string is only BRANCH) 2) ^BRANCH< (i.e. the string begins with BRANCH) 3) >BRANCH< (i.e. the string contains BRANCH in the middle somewhere) 4) >BRANCH$ (i.e. the string ends with BRANCH) Does that answer your question? -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
