yury-acts-as-taggable-on 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/acts_as_taggable_on/tag.rb +2 -1
  2. metadata +1 -1
@@ -5,7 +5,8 @@ class Tag < ActiveRecord::Base
5
5
  validates_uniqueness_of :name
6
6
 
7
7
  def self.cleanup(name)
8
- n = name.to_s.downcase.gsub(/[^а-яa-z0-9_-]+/, '').strip
8
+ return nil if name.blank?
9
+ n = name.to_s.mb_chars.downcase.strip.to_s
9
10
  n.blank? ? nil : n
10
11
  end
11
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yury-acts-as-taggable-on
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh