This commit is contained in:
Christian Mehlmauer
2016-06-14 03:30:17 +02:00
parent b1a8f445c6
commit 943bfc39b3

View File

@@ -95,6 +95,10 @@ class WpItems < Array
code = tag.text.to_s
next if code.empty?
if ! code.valid_encoding?
code = code.encode('UTF-16be', :invalid => :replace, :replace => '?').encode('UTF-8')
end
code.scan(code_pattern(wp_target)).flatten.uniq.each do |item_name|
names << item_name
end