fix searching for phrases by replacing smart quotes (#8865)

This commit is contained in:
Samuel Newman
2025-08-25 19:25:28 +03:00
committed by GitHub
parent 3810b29fb6
commit 7771b56a43
+4
View File
@@ -84,6 +84,10 @@ export function augmentSearchQuery(query: string, {did}: {did?: string}) {
return query
}
// replace “smart quotes” with normal ones
// iOS keyboard will add fancy unicode quotes, but only normal ones work
query = query.replaceAll(/[“”]/g, '"')
// We don't want to replace substrings that are being "quoted" because those
// are exact string matches, so what we'll do here is to split them apart