Fix inconsistent match counting in log search

Use dataset.logContent instead of textContent for counting search
matches in getMatchCount(). This aligns the counting logic with
matchesSearch() which uses the same data attribute for filtering
visibility, ensuring the displayed match count accurately reflects
the number of visible/hidden lines.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai 2025-12-18 08:30:30 +01:00
parent 40b1b1319f
commit 20e4783528

View File

@ -191,7 +191,7 @@
let count = 0;
const query = this.searchQuery.toLowerCase();
lines.forEach(line => {
if (line.textContent.toLowerCase().includes(query)) {
if (line.dataset.logContent && line.dataset.logContent.toLowerCase().includes(query)) {
count++;
}
});