Skip to content

Commit 5a3a692

Browse files
committed
Merge pull request #36 from igor-kamil/patch-1
fixed slug method for slovak specific characters
2 parents b36e893 + df19907 commit 5a3a692

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Conner/Tagging/TaggingUtil.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ public static function slug($str) {
106106
'č' => 'c', 'ď' => 'd', 'ě' => 'e', 'ň' => 'n', 'ř' => 'r', 'š' => 's', 'ť' => 't', 'ů' => 'u',
107107
'ž' => 'z',
108108

109+
// Slovak
110+
'Ľ' => 'L', 'Ĺ' => 'L', 'Ô' => 'O', 'Ŕ' => 'R',
111+
'ľ' => 'l', 'ĺ' => 'l', 'ô' => 'o', 'ŕ' => 'r',
112+
109113
// Polish
110114
'Ą' => 'A', 'Ć' => 'C', 'Ę' => 'e', 'Ł' => 'L', 'Ń' => 'N', 'Ó' => 'o', 'Ś' => 'S', 'Ź' => 'Z',
111115
'Ż' => 'Z',

0 commit comments

Comments
 (0)