Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing does not work correctly for OS with a downcased string #50

Open
martinmcfly opened this issue May 21, 2018 · 0 comments
Open

Parsing does not work correctly for OS with a downcased string #50

martinmcfly opened this issue May 21, 2018 · 0 comments

Comments

@martinmcfly
Copy link

martinmcfly commented May 21, 2018

example

eg_string = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5"
UserAgent.parse(eg_string).os
=> "OS X 10.6.8"
UserAgent.parse(eg_string.downcase).os
=> "intel mac os x 10_6_8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@martinmcfly and others