From 3c581adbc3baa16ac9c3301e3dc372768a71a306 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Mon, 6 Mar 2017 15:29:05 -0800 Subject: [PATCH] fixes #2915: Translated Tags should be smarter (split by delimiters) --- app/logical/sources/site.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/logical/sources/site.rb b/app/logical/sources/site.rb index 9eee42c4e..0c9f67601 100644 --- a/app/logical/sources/site.rb +++ b/app/logical/sources/site.rb @@ -45,6 +45,7 @@ module Sources def translated_tags untranslated_tags = tags untranslated_tags = untranslated_tags.map(&:first) + untranslated_tags += untranslated_tags.grep(/\//).map {|x| x.split(/\//)}.flatten untranslated_tags = untranslated_tags.map do |tag| if tag =~ /\A(\S+?)_?\d+users入り\Z/ $1