Skip to content

Commit

Permalink
fix: fix wrong czech word for symbol @
Browse files Browse the repository at this point in the history
  • Loading branch information
jansvabik committed Oct 7, 2021
1 parent 17271d5 commit 6831718
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion languages_substitution.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var defaultSub = map[rune]string{

var csSub = map[rune]string{
'&': "a",
'@': "apostrof",
'@': "zavinac",
}

var deSub = map[rune]string{
Expand Down
8 changes: 4 additions & 4 deletions slug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ func TestSlugMakeLang(t *testing.T) {
// & fun.
{"cs", "Toto & Tamto", "toto-a-tamto", true},
{"cs", "Toto & Tamto", "Toto-a-Tamto", false},
{"cs", "Toto @ Tamto", "toto-apostrof-tamto", true},
{"cs", "Toto @ Tamto", "Toto-apostrof-Tamto", false},
{"cs", "Toto @ Tamto", "toto-zavinac-tamto", true},
{"cs", "Toto @ Tamto", "Toto-zavinac-Tamto", false},
{"ces", "Toto & Tamto", "toto-a-tamto", true},
{"ces", "Toto & Tamto", "Toto-a-Tamto", false},
{"ces", "Toto @ Tamto", "toto-apostrof-tamto", true},
{"ces", "Toto @ Tamto", "Toto-apostrof-Tamto", false},
{"ces", "Toto @ Tamto", "toto-zavinac-tamto", true},
{"ces", "Toto @ Tamto", "Toto-zavinac-Tamto", false},
{"de", "This & that", "this-und-that", true},
{"en", "This & that", "this-and-that", true},
{"es", "This & that", "this-y-that", true},
Expand Down

0 comments on commit 6831718

Please sign in to comment.