dgtlmoon / dgtlmoon/changedetection.io

Mechanism for partial line matches/ignores

Open
#820 2 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
34.1k
Forks
2k
Avg merge
10h
Merged PRs (30d)
61

Description

**Version and OS**
0.39.17.2 (current) on docker

**Is your feature request related to a problem? Please describe.**
I'm frustrated that the "ignore" matches are for the full line. I want to ignore part of a "line". In the screenshot below I would like to ignore from "Offer ends" onwards, as the date changes and the "View more" wording is added and removed periodically. However, I would still like to trigger a match if the actual "2 for $16" offer changes (eg becomes "3 for $22")
![image](https://user-images.githubusercontent.com/1082213/183283555-317e780e-164d-418a-b1b8-a4e3ea5e9541.png)

**Describe the solution you'd like**
Ignore lines could be partial matches, with regex allowing people to match on full lines if they choose to, via the use of ".*" and ^/$ beginning/end line position anchors.

**Describe the use-case and give concrete real-world examples**
Per screenshot above, I would like to match on the "2 for $16" text changing, but ignore the date change on the same line.

**Additional context**

Contributor guide

Open the contributing guide

Research direction

The issue does not name implementation files, tests, or entry points. Start by locating the code that applies full-line ignore matches, then trace how line comparisons and regular expressions are handled. Done means an ignore can cover only part of a line while preserving detection of changes in the remaining text, including the stated offer example.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.