Not possible to search for test suites (again?) using regex, e.g. `^gnome$`
#4 Updated by mkittler about 2 years ago
- Priority changed from Normal to Low
Likely a data tables bug, e.g. one can reproduce it as well in their examples: https://datatables.net/examples/api/regex.html
But it is only reproducible using the global search. They somehow implemented that "column boundaries" can be "crossed" using one ore more white spaces, e.g.
^value1 value2 $ would match if one column contains
value1 and a subsequent (but not necessarily adjacent) column contains
value2. Likely this extra handling adds the requirement to put a space before
$. Not sure whether this can be easily fixed from our side and whether it is worth the effort.
Since regex works in general I'm lowering the priority.
#7 Updated by ilausuch about 1 year ago
Checking on the datatables JS
I found that in the function https://cdn.datatables.net/v/dt/dt-1.10.21/datatables.js that I think is the used for this purpose.
If the smart flag is on (I checked to search in more than one column is necessary to simplify the search) then the search add the ^ and $ symbols. And the strings we put on the search field are joined using this structure:
search = '?=.*?'+a.join( '(?=.?' )+').$';
But I if I am not wrong in the code we have only regex flag
But testing the search input it is working as if smart flag is active. For instance searching for: gnome clone