uap-ruby icon indicating copy to clipboard operation
uap-ruby copied to clipboard

Unexpected result from example shown in README

Open dmke opened this issue 4 years ago • 0 comments

The README gives the following example:

UserAgentParser.parse "Mozilla/5.0 (iPad; CPU OS 10_2_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) GSA/23.1.148956103 Mobile/14D27 Safari/600.1.4"
#=> <UserAgentParser::UserAgent Mobile Safari 10.2.1 (iOS 10.2.1) (iPad)>

however, with the current version (2.7.0), I'll a different browser:

UserAgentParser.parse "Mozilla/5.0 (iPad; CPU OS 10_2_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) GSA/23.1.148956103 Mobile/14D27 Safari/600.1.4"
#=> #<UserAgentParser::UserAgent Google 23.1.148956103 (iOS 10.2.1) (iPad)>

I've never seen a GSA/x.y.z fragment, so I'm not sure what the correct output should be ("Google 23.1.148956103" or "Safari 10.2.1").

dmke avatar Aug 24 '20 10:08 dmke