From 0c4035c2d974b6bedf92d812faf18851fac7f98f Mon Sep 17 00:00:00 2001 From: dm5wk Date: Sun, 19 Jan 2025 17:15:59 +0100 Subject: [PATCH] enable regex in column filter --- band-plan.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/band-plan.html b/band-plan.html index 85a3e9a..69eee83 100644 --- a/band-plan.html +++ b/band-plan.html @@ -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") {