diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-05-21 21:20:42 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 21:20:42 -0500 |
commit | dd7164aac2e26426dbc82f213aa30249aae5638b (patch) | |
tree | 8af48dc7204f71c0283974a4f9010bb68459299c /app/services | |
parent | 9abf1ce535f48fd641b8bfb5083d6086a5d5cb0d (diff) |
handle tags with the old `:` scope delimiter but translate those to `.`
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/process_hashtags_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/process_hashtags_service.rb b/app/services/process_hashtags_service.rb index e8c2c95bb..07806b4a7 100644 --- a/app/services/process_hashtags_service.rb +++ b/app/services/process_hashtags_service.rb @@ -8,7 +8,7 @@ class ProcessHashtagsService < BaseService records = [] tags.map { |str| str.mb_chars.downcase }.uniq(&:to_s).each do |name| - name = name.gsub(/\.\.+/, '.') + name = name.gsub(/[:.]+/, '.') next if name.blank? component_indices = name.size.times.select {|i| name[i] == '.'} component_indices << name.size - 1 |