enable regex in column filter
This commit is contained in:
parent
190b6649b7
commit
0c4035c2d9
|
@ -103,6 +103,9 @@ div>label {
|
|||
} else {
|
||||
return true;
|
||||
}
|
||||
} else if (headerValue.startsWith("/") && headerValue.endsWith("/") && (headerValue.length > 1)) {
|
||||
// filter regex
|
||||
return RegExp(headerValue.toString().slice(1).slice(0,-1)).test(rowValue);
|
||||
} else {
|
||||
// filter normal
|
||||
if (typeof rowValue !== "undefined") {
|
||||
|
|
Loading…
Reference in a new issue