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:
@@ -64,7 +64,6 @@ export class TextProcessor {
|
|||||||
words: string[],
|
words: string[],
|
||||||
query?: Query
|
query?: Query
|
||||||
): SearchMatch[] {
|
): SearchMatch[] {
|
||||||
words = words.map(escapeHTML)
|
|
||||||
const reg = this.stringsToRegex(words)
|
const reg = this.stringsToRegex(words)
|
||||||
const originalText = text
|
const originalText = text
|
||||||
// text = text.toLowerCase().replace(new RegExp(SEPARATORS, 'gu'), ' ')
|
// text = text.toLowerCase().replace(new RegExp(SEPARATORS, 'gu'), ' ')
|
||||||
|
|||||||
Reference in New Issue
Block a user