-
-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix transliteration to default replacement char
Commit f6a4294 introduced a bug where non-ASCII chars not present in the transliteration map would be removed from the output, instead of being replaced by the default replacement char, violating the behavior stated in the documentation: I18n.transliterate("日本語") # => "" (should be "???") This fixes the issue while preserving the optimization introduced by that commit.
- Loading branch information
1 parent
529d61c
commit 6b60a5b
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters