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