Fix apostrophe normalization syntax error - use Unicode escape sequences

This commit is contained in:
2026-02-04 15:33:59 -05:00
parent 7c92515723
commit 6ab5e44112

View File

@@ -76,10 +76,10 @@ public static class FuzzyMatcher
// Normalize different apostrophe types to standard apostrophe
normalized = normalized
.Replace(''', '\'') // Right single quotation mark
.Replace(''', '\'') // Left single quotation mark
.Replace('`', '\'') // Grave accent
.Replace('´', '\''); // Acute accent
.Replace("\u2019", "'") // Right single quotation mark (')
.Replace("\u2018", "'") // Left single quotation mark (')
.Replace("`", "'") // Grave accent
.Replace("\u00B4", "'"); // Acute accent (´)
// Normalize whitespace
normalized = System.Text.RegularExpressions.Regex.Replace(normalized, @"\s+", " ");