Skip to content

Commit

Permalink
Removed legacy ECN code from highlighting.js
Browse files Browse the repository at this point in the history
  • Loading branch information
remender authored Nov 17, 2025
1 parent 5a13bd0 commit 899bcc8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions content/modules/highlighting.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,6 @@ function handleHighlight(type, txt, element) {
var re
var style = null

if (typeof txt === "string") {
for (const [key, color] of Object.entries(colorsByStatus)) {
// Reset regex lastIndex to avoid state issues
color.re.lastIndex = 0
re = color.re.exec(txt)
if (re) {
style = color.style
break
}
}
}

const customHighlights = settings('get', 'customHighlights') || []
for (const customHighlight of customHighlights) {
let customType = customHighlight.type
Expand Down

0 comments on commit 899bcc8

Please sign in to comment.