Skip to content

Commit

Permalink
Add support for capital sharp s
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 committed Feb 7, 2022
1 parent 2611e60 commit 2d2e6e2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions Resources/rules/austrian.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"Ä": "AE",
"Ö": "OE",
"Ü": "UE",
"ß": "sz",
"": "SS",
"ä": "ae",
"ö": "oe",
"ü": "ue"
"ü": "ue",
"ß": "ss"
}
5 changes: 3 additions & 2 deletions Resources/rules/german.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"Ä": "AE",
"Ö": "OE",
"Ü": "UE",
"ß": "ss",
"": "SS",
"ä": "ae",
"ö": "oe",
"ü": "ue"
"ü": "ue",
"ß": "ss"
}
6 changes: 4 additions & 2 deletions src/RuleProvider/DefaultRuleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,11 @@ class DefaultRuleProvider implements RuleProviderInterface
'Ä' => 'AE',
'Ö' => 'OE',
'Ü' => 'UE',
'ß' => 'sz',
'' => 'SS',
'ä' => 'ae',
'ö' => 'oe',
'ü' => 'ue',
'ß' => 'ss',
),
'azerbaijani' =>
array (
Expand Down Expand Up @@ -7627,10 +7628,11 @@ class DefaultRuleProvider implements RuleProviderInterface
'Ä' => 'AE',
'Ö' => 'OE',
'Ü' => 'UE',
'ß' => 'ss',
'' => 'SS',
'ä' => 'ae',
'ö' => 'oe',
'ü' => 'ue',
'ß' => 'ss',
),
'greek' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion tests/SlugifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function defaultRuleProvider()
['H+e#l1l--o/W§o r.l:d)', 'h-e-l1l-o-w-o-r-l-d'],
[': World', 'world'],
['Hello World!', 'hello-world'],
['Ä ä Ö ö Ü ü ß', 'ae-ae-oe-oe-ue-ue-ss'],
['Ä ä Ö ö Ü ü ß', 'ae-ae-oe-oe-ue-ue-ss-ss'],
['Á À á à É È é è Ó Ò ó ò Ñ ñ Ú Ù ú ù', 'a-a-a-a-e-e-e-e-o-o-o-o-n-n-u-u-u-u'],
['Â â Ê ê Ô ô Û û', 'a-a-e-e-o-o-u-u'],
['Â â Ê ê Ô ô Û 1', 'a-a-e-e-o-o-u-1'],
Expand Down

0 comments on commit 2d2e6e2

Please sign in to comment.