Created
January 13, 2016 10:03
-
-
Save railscard/277d400b8b33ec435cf9 to your computer and use it in GitHub Desktop.
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
module UnicodeStringUtils | |
def downcase(input) | |
input.to_s.mb_chars.downcase | |
end | |
def upcase(input) | |
input.to_s.mb_chars.downcase | |
end | |
end | |
Liquid::Template.register_filter(UnicodeStringUtils) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment