diff --git a/app/models/alt_style.rb b/app/models/alt_style.rb index 9ff615e3..242799e9 100644 --- a/app/models/alt_style.rb +++ b/app/models/alt_style.rb @@ -15,7 +15,7 @@ class AltStyle < ApplicationRecord # HACK: Just assume this is a Nostalgic Alt Style, and that the thumbnail # is named reliably! "https://images.neopets.com/items/nostalgic_" + - "#{color.name.downcase}_#{species.name.downcase}.gif" + "#{color.name.gsub(/\s+/, '').downcase}_#{species.name.downcase}.gif" end MANIFEST_PATTERN = %r{^https://images.neopets.com/(?.+)/(?[0-9]+)(?_[^/]+)?/manifest\.json}