enable regex in column filter

This commit is contained in:
Wolfgang 2025-01-19 17:15:59 +01:00
parent 190b6649b7
commit 0c4035c2d9

View file

@ -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") {