lib/woothee/appliance.rb in woothee-0.3.0 vs lib/woothee/appliance.rb in woothee-0.3.2
- old
+ new
@@ -8,10 +8,10 @@
def self.challenge_playstation(ua, result)
data = case
when ua.index('PSP (PlayStation Portable);') then Woothee::DataSet.get('PSP')
when ua.index('PlayStation Vita') then Woothee::DataSet.get('PSVita')
- when ua.index('PLAYSTATION 3;') then Woothee::DataSet.get('PS3')
+ when ua.index('PLAYSTATION 3 ') || ua.index('PLAYSTATION 3;') then Woothee::DataSet.get('PS3')
else nil
end
return false unless data
update_map(result, data)