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

Fix patch version parsing for Facebook and Pinterest app #269

Merged
merged 1 commit into from
Sep 18, 2017
Merged

Fix patch version parsing for Facebook and Pinterest app #269

merged 1 commit into from
Sep 18, 2017

Conversation

gaetano-guerriero
Copy link
Contributor

Regular expression was capturing just last digit of patch version.

@@ -6381,11 +6381,11 @@ test_cases:
minor: '4'
patch:

- user_agent_string: '[FBAN/FB4A;FBAV/2.3;FBBV/149649;FBDM/{density=1.5,width=480,height=800};FBLC/es_ES;FBCR/;FBPN/com.facebook.katana;FBDV/LG-P920;FBSV/2.2.2;]'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not delete/change a previous UA-String. Add a new one instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@@ -6501,11 +6501,11 @@ test_cases:
minor: '3'
patch: '1'

- user_agent_string: 'Pinterest for Android/1.1.1 (endeavoru; 4.1.1)'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not delete/change a previous UA-String. Add a new one instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

The patch number was wrongly captured.
@commenthol commenthol merged commit 91ac937 into ua-parser:master Sep 18, 2017
@commenthol
Copy link
Contributor

Thanks

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

Successfully merging this pull request may close these issues.

2 participants