Skip to content

Commit

Permalink
Add regex-report for regex matching highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
ejunga committed Apr 21, 2025
1 parent 7bb2b11 commit 23d7955
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tdx-enhanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 23d7955

Please sign in to comment.