Skip to content

Add support for patch_minor when detecting Chrome.#322

Merged
commenthol merged 2 commits intoua-parser:masterfrom
marascio:chrome-patch-minor-support
Sep 14, 2018
Merged

Add support for patch_minor when detecting Chrome.#322
commenthol merged 2 commits intoua-parser:masterfrom
marascio:chrome-patch-minor-support

Conversation

@marascio
Copy link
Contributor

@marascio marascio commented Jun 5, 2018

This should, I believe, resolve #22.

@ajlai
Copy link

ajlai commented Jul 25, 2018

Would love to get this as Google Analytics browser_version data shows the patch_minor for chrome while ua-parser output currently does not.

@commenthol commenthol merged commit a537607 into ua-parser:master Sep 14, 2018
@masklinn
Copy link
Contributor

masklinn commented May 5, 2022

Was this ever integrated for real?

The spec was not updated, it looks like the test driver for the reference implementation (test.js) has never taken this new key in account, and the reference implementation was never updated to parse it in the UA either (https://github.com/ua-parser/uap-ref-impl/blob/master/lib/ua.js only sets family, major, minor, and patch).

Shouldn't this be backed out? Or finished "for real"?

lbarthon pushed a commit that referenced this pull request Apr 23, 2024
`patch_minor` was added to regexes and some test_ua entries in #322.

Neither spec nor reference implementation were ever updated for it, so
many regexes were merged (?) with a capture for `patch_minor` but
without correctly asserting it, and a pair of cases specify a
`patch_minor` which is not captured:

- the facebook regex[^1] only has 4 capturing groups
- same for the AWS regex[^2]

[^1]: https://github.com/ua-parser/uap-core/blob/959e106754828ae557b0dbcfaf8eeee938d3c824/regexes.yaml#L176
[^2]: https://github.com/ua-parser/uap-core/blob/959e106754828ae557b0dbcfaf8eeee938d3c824/regexes.yaml#L155
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.

Chrome build version not parsed

4 participants