From f6e5f294fd4a50ae6c120027e72c3422891004e2 Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Wed, 8 Aug 2018 11:47:35 +0200 Subject: [PATCH] Fix Macedonian Dze --- Resources/rules/macedonian.json | 4 ++-- src/RuleProvider/DefaultRuleProvider.php | 4 ++-- tests/SlugifyTest.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Resources/rules/macedonian.json b/Resources/rules/macedonian.json index b4c94d33..7a87f460 100644 --- a/Resources/rules/macedonian.json +++ b/Resources/rules/macedonian.json @@ -8,7 +8,7 @@ "Е": "E", "Ж": "Zh", "З": "Z", - "S": "Dz", + "Ѕ": "Dz", "И": "I", "Ј": "J", "К": "K", @@ -39,7 +39,7 @@ "е": "e", "ж": "zh", "з": "z", - "s": "dz", + "ѕ": "dz", "и": "i", "ј": "j", "к": "k", diff --git a/src/RuleProvider/DefaultRuleProvider.php b/src/RuleProvider/DefaultRuleProvider.php index 1e47552e..eeb0e5ba 100644 --- a/src/RuleProvider/DefaultRuleProvider.php +++ b/src/RuleProvider/DefaultRuleProvider.php @@ -7817,7 +7817,7 @@ class DefaultRuleProvider implements RuleProviderInterface 'Е' => 'E', 'Ж' => 'Zh', 'З' => 'Z', - 'S' => 'Dz', + 'Ѕ' => 'Dz', 'И' => 'I', 'Ј' => 'J', 'К' => 'K', @@ -7848,7 +7848,7 @@ class DefaultRuleProvider implements RuleProviderInterface 'е' => 'e', 'ж' => 'zh', 'з' => 'z', - 's' => 'dz', + 'ѕ' => 'dz', 'и' => 'i', 'ј' => 'j', 'к' => 'k', diff --git a/tests/SlugifyTest.php b/tests/SlugifyTest.php index 2938a8eb..5037cbfb 100644 --- a/tests/SlugifyTest.php +++ b/tests/SlugifyTest.php @@ -161,7 +161,7 @@ public function customRulesProvider() ['lithuanian', 'Ą Č Ę Ė Į Š Ų Ū Ž ą č ę ė į š ų ū ž', 'a-c-e-e-i-s-u-u-z-a-c-e-e-i-s-u-u-z'], ['estonian', 'Š Ž Õ Ä Ö Ü š ž õ ä ö ü', 's-z-o-a-o-u-s-z-o-a-o-u'], ['hungarian', 'Á É Í Ó Ö Ő Ú Ü Ű á é í ó ö ő ú ü ű', 'a-e-i-o-o-o-u-u-u-a-e-i-o-o-o-u-u-u'], - ['macedonian', 'Ѓезвето беше полно со црно кафе. ', 'gjezveto-beshe-polno-so-crno-kafe'], + ['macedonian', 'Ѓезвето беше полно со црно кафе. Ѕ ѕ s', 'gjezveto-beshe-polno-so-crno-kafe-dz-dz-s'], ['chinese', '活动日起', 'huodongriqi'], ]; }