Open prashcr opened 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
#platform
Windows
Gem version: 0.16.8
0.16.8
It seems to parse the OS correctly, but the platform is not normalized. I'd expect
#platform
to returnWindows
as it does for other Win7 browsersGem version:
0.16.8