We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new_tag_names = list.reject { |name| existing_tags.any? { |tag| tag.name.downcase == name.downcase } }
code above work incorrectly with unicode tag names. Names should be downcased with mb_chars.downcase
here is the patch: http://github.com/yury/acts-as-taggable-on/commit/31385691e989e2b15ddab1d318d673f4cb69ef4e Can't write test to reproduce problem, because sqlite LIKE is case sensitive with unicode chars.
The text was updated successfully, but these errors were encountered:
I was unable to pull your commit for some reason, so I've changed the code myself. Thanks for the patch!
Sorry, something went wrong.
Cool, thanks
Use multibyte chars to downcase tag names. Fixes issue mbleigh#40.
bb3f9e9
No branches or pull requests
code above work incorrectly with unicode tag names. Names should be downcased with mb_chars.downcase
here is the patch:
http://github.com/yury/acts-as-taggable-on/commit/31385691e989e2b15ddab1d318d673f4cb69ef4e
Can't write test to reproduce problem, because sqlite LIKE is case sensitive with unicode chars.
The text was updated successfully, but these errors were encountered: