koalyptus / TableFilter

A Javascript library making HTML tables filterable and a bit more :)
https://www.tablefilter.com
MIT License
324 stars 95 forks source link

How do you filter a column for * when its NOT a wildcard? #709

Closed Guyver1wales closed 5 years ago

Guyver1wales commented 5 years ago

I'm currently using tablefilter to filter a html report which is esentially a 20,000+ certificate database of every certificate installed on all our domain servers.

we have a lot of wildcard certificates that are named *.mydomain.co.uk

with a regular expression I can escape a by doing \* and it will treat the as a valid character to search rather than treating it as a wildcard.

How do I escape when filtering my tables so I can actually search for the character and not have it treated as a wildcard??

koalyptus commented 5 years ago

Have you tried to use a regex by inserting rgx:\*.mydomain.co.uk in the filter?

koalyptus commented 5 years ago

Alternatively you could define the like_operator option to another value than *, eg:

var tf = new TableFilter('my-table-id-here', {
  like_operator: '[*]'
});
tf.init();
Guyver1wales commented 5 years ago

Have you tried to use a regex by inserting rgx:\*.mydomain.co.uk in the filter?

thats what I was looking for, cheers!

koalyptus commented 5 years ago

Alternatively you could define the like_operator option to another value than *, eg:

var tf = new TableFilter('my-table-id-here', {
  like_operator: '[*]'
});
tf.init();