mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
lean on Inflector transliteration
This commit is contained in:
@ -35,5 +35,11 @@ describe Slug do
|
||||
Slug.for("...hello").should == "hello"
|
||||
end
|
||||
|
||||
it 'handles our initial transliteration' do
|
||||
from = "àáäâčďèéëěêìíïîľĺňòóöôŕřšťůùúüûýžñç"
|
||||
to = "aaaacdeeeeeiiiillnoooorrstuuuuuyznc"
|
||||
Slug.for(from).should == to
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user