enable regex in column filter
This commit is contained in:
parent
190b6649b7
commit
0c4035c2d9
|
@ -103,6 +103,9 @@ div>label {
|
||||||
} else {
|
} else {
|
||||||
return true;
|
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 {
|
} else {
|
||||||
// filter normal
|
// filter normal
|
||||||
if (typeof rowValue !== "undefined") {
|
if (typeof rowValue !== "undefined") {
|
||||||
|
|
Loading…
Reference in a new issue