mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
Fix apostrophe normalization syntax error - use Unicode escape sequences
This commit is contained in:
@@ -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+", " ");
|
||||
|
||||
Reference in New Issue
Block a user