fix: Prevent premature HTML escaping of search terms

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-05 13:03:34 -07:00
parent f17f9756a3
commit 3c84980903

View File

@@ -64,7 +64,6 @@ export class TextProcessor {
words: string[],
query?: Query
): SearchMatch[] {
words = words.map(escapeHTML)
const reg = this.stringsToRegex(words)
const originalText = text
// text = text.toLowerCase().replace(new RegExp(SEPARATORS, 'gu'), ' ')