Skip to content

Commit

Permalink
Merge pull request #77 from kafoso/master
Browse files Browse the repository at this point in the history
Fix rules for Danish special letters 'ø' and 'å'
  • Loading branch information
Florian Eckerstorfer committed Sep 29, 2015
2 parents 1dc755d + e368b7f commit cb206f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Slugify.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Slugify implements SlugifyInterface
'Á' => 'A',
'Â' => 'A',
'Ã' => 'A',
'Å' => 'A',
'Å' => 'AA',
'Ǻ' => 'A',
'Ă' => 'A',
'Ǎ' => 'A',
Expand All @@ -67,7 +67,7 @@ class Slugify implements SlugifyInterface
'á' => 'a',
'â' => 'a',
'ã' => 'a',
'å' => 'a',
'å' => 'aa',
'ǻ' => 'a',
'ă' => 'a',
'ǎ' => 'a',
Expand Down Expand Up @@ -140,7 +140,7 @@ class Slugify implements SlugifyInterface
'Ǒ' => 'O',
'Ő' => 'O',
'Ơ' => 'O',
'Ø' => 'O',
'Ø' => 'OE',
'Ǿ' => 'O',
'Œ' => 'OE',
'ò' => 'o',
Expand All @@ -151,7 +151,7 @@ class Slugify implements SlugifyInterface
'ǒ' => 'o',
'ő' => 'o',
'ơ' => 'o',
'ø' => 'o',
'ø' => 'oe',
'ǿ' => 'o',
'º' => 'o',
'œ' => 'oe',
Expand Down
2 changes: 1 addition & 1 deletion tests/SlugifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function provider()
array('Â â Ê ê Ô ô Û û', 'a-a-e-e-o-o-u-u'),
array('Â â Ê ê Ô ô Û 1', 'a-a-e-e-o-o-u-1'),
array('°¹²³⁴⁵⁶⁷⁸⁹@₀₁₂₃₄₅₆₇₈₉', '0123456789at0123456789'),
array('Mórë thån wørds', 'more-than-words'),
array('Mórë thån wørds', 'more-thaan-woerds'),
array('Блоґ їжачка', 'blog-jizhachka'),
array('фильм', 'film'),
array('драма', 'drama'),
Expand Down

0 comments on commit cb206f9

Please sign in to comment.