From 22c61b34728328399c0f4d1dfc1d6b762eb5875f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Gaulin?= Date: Wed, 15 Apr 2020 08:47:09 +0400 Subject: [PATCH 1/2] Add "Right Single Quotation Mark" conversion to "Single Quotation Mark" --- SMSCounter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SMSCounter.php b/SMSCounter.php index 983bec7..148574c 100644 --- a/SMSCounter.php +++ b/SMSCounter.php @@ -689,6 +689,8 @@ public function removeAccents($str) 'Ǚ' => 'U', 'ǚ' => 'u', // grave accent 'Ǜ' => 'U', 'ǜ' => 'u', + // Right Single Quotation Mark + '’' => '\'', // spaces ' ' => ' ', ' ' => ' ', ]; From 69a53a64af4609b637350be4d96ac68a063ad545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Gaulin?= Date: Wed, 15 Apr 2020 08:52:05 +0400 Subject: [PATCH 2/2] Add test for "Right Single Quotation Mark" conversion --- Tests/SMSCounterTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/SMSCounterTest.php b/Tests/SMSCounterTest.php index 89b73c5..892c0d1 100755 --- a/Tests/SMSCounterTest.php +++ b/Tests/SMSCounterTest.php @@ -372,6 +372,7 @@ public function dataProvider() ['@£$¥èéùìòÇØøÅåΔ_ΦΓΛΩΠΨΣΘΞ^{}\[~]|€ÆæßÉ!\"#¤%&\'()*+,-./0123456789:;<=>?¡ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÑܧ¿abcdefghijklmnopqrstuvwxyzäöñüà', '@£$¥èéùìòÇØøÅåΔ_ΦΓΛΩΠΨΣΘΞ^{}\[~]|€ÆæßÉ!\"#¤%&\'()*+,-./0123456789:;<=>?¡ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÑܧ¿abcdefghijklmnopqrstuvwxyzäöñüà'], ['Lhg jjjo fx 382 64237 12299 qmecb. Ç éæ+! -[Å*_ (¡)| ?Λ^ ~£;ΩΠ¿ ÑΔ #ΓüΘ¥ñ,É øΨì] ò= Ü. @å<: ö%\'Ƥ"Ö> اΦ{ }/&Ä ùß\€ èà Ξ$äΣ.', 'Lhg jjjo fx 382 64237 12299 qmecb. Ç éæ+! -[Å*_ (¡)| ?Λ^ ~£;ΩΠ¿ ÑΔ #ΓüΘ¥ñ,É øΨì] ò= Ü. @å<: ö%\'Ƥ"Ö> اΦ{ }/&Ä ùß\€ èà Ξ$äΣ.'], ['dadáó', 'dadao'], + ['Un rêve de l’aperçu', 'Un reve de l\'apercu'], ["\xc2\xa0|\xe2\x80\x87|\xef\xbb\xbf", ' | |'], ]; }