From 23d7955eab01df4128039812fb7216de9441c551 Mon Sep 17 00:00:00 2001 From: ejunga Date: Mon, 21 Apr 2025 15:16:22 -0400 Subject: [PATCH 1/2] Add regex-report for regex matching highlights --- tdx-enhanced.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tdx-enhanced.js b/tdx-enhanced.js index ca10fe2..d4c39bc 100644 --- a/tdx-enhanced.js +++ b/tdx-enhanced.js @@ -733,6 +733,12 @@ } } + if (type=="report" && customType=="report-regex") { + if ((new RegExp(customHighlight.value).exec(txt))) { + style = customHighlight.style + } + } + if (type=="person" && customType=="person") { if (customHighlight.value==txt) { element = createHighlightBubble(element) From a7d0d14194e2ab4bc20c1cff15fb36f1af18d904 Mon Sep 17 00:00:00 2001 From: ejunga Date: Mon, 2 Jun 2025 08:46:54 -0400 Subject: [PATCH 2/2] Update to match reports in new dashboard --- tdx-enhanced.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tdx-enhanced.js b/tdx-enhanced.js index dce2982..d205ee0 100644 --- a/tdx-enhanced.js +++ b/tdx-enhanced.js @@ -1064,6 +1064,7 @@ if (type=="report" && customType=="report-regex") { if ((new RegExp(customHighlight.value).exec(txt))) { + element.classList.add("reportTitle") style = customHighlight.style } }