lib/icarus/mod/tools/sync/mods.rb in Icarus-Mod-Tools-2.1.2 vs lib/icarus/mod/tools/sync/mods.rb in Icarus-Mod-Tools-2.1.3

- old
+ new

@@ -19,10 +19,10 @@ @firestore.mods end def info_array @info_array ||= @firestore.modinfo.map do |url| - retrieve_from_url(url)[:mods].map { |mod| Icarus::Mod::Tools::Modinfo.new(mod) if mod[:name] =~ /[a-z0-9]+/i } + retrieve_from_url(url)[:mods].map { |mod| Icarus::Mod::Tools::Modinfo.new(mod) if mod[:name].match?(/[a-z0-9]+/i) } rescue Icarus::Mod::Tools::Sync::RequestFailed warn "Skipped; Failed to retrieve #{url}" next rescue JSON::ParserError => e warn "Skipped; Invalid JSON: #{e.full_message}"