gshutler / useragent

HTTP User Agent parser
MIT License
179 stars 159 forks source link

#platform is not normalized for Windows user on QQ Browser #49

Open prashcr opened 6 years ago

prashcr commented 6 years ago
[2] pry(main)> ua = UserAgent.parse('Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 MicroMessenger/6.5.2.501 NetType/WIFI WindowsWechat QBCore/3.43.691.400 QQBrowser/9.0.2524.400')
[3] pry(main)> ua.os
=> "Windows 7"
[4] pry(main)> ua.platform
=> "Windows NT 6.1"

It seems to parse the OS correctly, but the platform is not normalized. I'd expect #platform to return Windows as it does for other Win7 browsers

Gem version: 0.16.8