Skip to content

Commit

Permalink
Merge pull request #23 from ejunga/regex-matching
Browse files Browse the repository at this point in the history
Regex matching
  • Loading branch information
ejunga authored Jul 22, 2025
2 parents f84114b + 634dda5 commit bca23e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tdx-enhanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,13 @@
}
}

if (type=="report" && customType=="report-regex") {
if ((new RegExp(customHighlight.value).exec(txt))) {
element.classList.add("reportTitle")
style = customHighlight.style
}
}

if (type=="person" && customType=="person") {
if (customHighlight.value==txt) {
element = createHighlightBubble(element)
Expand Down

0 comments on commit bca23e3

Please sign in to comment.