diff --git a/indexer/indexer_tests/search_string_utils_test.cpp b/indexer/indexer_tests/search_string_utils_test.cpp index 94fe07f1ad..b5e24a972c 100644 --- a/indexer/indexer_tests/search_string_utils_test.cpp +++ b/indexer/indexer_tests/search_string_utils_test.cpp @@ -282,4 +282,9 @@ UNIT_TEST(NormalizeAndSimplifyString_Numero) TEST_EQUAL(NormalizeAndSimplifyStringUtf8("Area #One"), "area #one", ()); } +UNIT_TEST(NormalizeAndSimplifyString_Apostrophe) +{ + TEST_EQUAL(NormalizeAndSimplifyStringUtf8("Pop’s"), "pop's", ()); +} + } // namespace search_string_utils_test diff --git a/indexer/search_string_utils.cpp b/indexer/search_string_utils.cpp index e525ce2309..270522a5e7 100644 --- a/indexer/search_string_utils.cpp +++ b/indexer/search_string_utils.cpp @@ -130,6 +130,10 @@ UniString NormalizeAndSimplifyString(std::string_view s) c = 'a'; uniString.insert(uniString.begin() + (i++) + 1, 'e'); break; + case 0x2018: // ‘ + case 0x2019: // ’ + c = '\''; + break; case 0x2116: // № c = '#'; break;