From ea45c706be5297605259d7bad36beee4ada9232c Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 6 Oct 2025 19:11:37 +0200 Subject: [PATCH] redlines hacks not needed --- changedetectionio/diff.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/changedetectionio/diff.py b/changedetectionio/diff.py index ea51c5fd7..42638bb4c 100644 --- a/changedetectionio/diff.py +++ b/changedetectionio/diff.py @@ -23,12 +23,6 @@ DIFF_HTML_LABEL_INSERTED = f'{{cont # Compiled regex patterns for performance WHITESPACE_NORMALIZE_RE = re.compile(r'\s+') -# Because `redlines` wont let us easily add our own format, so we replace it. -# Note: Use .*? with DOTALL to match content including HTML tags -REDLINES_REMOVED_RE = re.compile(r"(.*?)", re.DOTALL) -REDLINES_ADDED_RE = re.compile(r"(.*?)", re.DOTALL) - - def render_inline_word_diff(before_line: str, after_line: str, html_colour: bool = False, ignore_junk: bool = False, markdown_style: str = None) -> tuple[str, bool]: """ Render word-level differences between two lines inline using diff-match-patch library.