diff --git a/content/modules/highlighting.js b/content/modules/highlighting.js index 7473740..9018ddc 100644 --- a/content/modules/highlighting.js +++ b/content/modules/highlighting.js @@ -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