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

Merge from upstream #8

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open

Merge from upstream #8

wants to merge 53 commits into from

Conversation

matAtWork
Copy link

No description provided.

GeyseR and others added 30 commits September 30, 2022 12:38
This is the browser used by Meta's Quest line of headsets
Parse modern Java versions
Fix Firefox regex to handle version without patch segment
Add regex for the PingdomPageSpeed bot
chore(actions): upgrade to checkout@v3
With how the regex was written before, it was matching either Phantom/ios or
android, instead of Phantom/android. The test worked as expected, but this
broke the newly introduced test for Ecosia, as it would match aswell.
Add Ecosia support & fix Phantom regex
The UA for Edge on iPad OS doesn't specify the full edge version, but only the
major. This changes the regex so that both minor & patch versions are optional.
lbarthon and others added 23 commits February 21, 2024 16:42
fix: parse Edge on iPad OS properly
The UA for Chrome on iOS doesn't specify the full Chrome version, but only the
major. This changes the regex so that both minor & patch versions are optional.
Before this change, the Nintendo Switch UA wasn't being fully parsed, so the
OS was considered to be "Other", which is the default value. This fixes it, by
updating the Nintendo regex to handle it properly.
Also removes SamsungBrowser from the Meta Quest tests as this
is no longer part of the UA

Co-authored-by: geoada <[email protected]>
* update yandex browser regex

* Update test_ua.yaml

* fix yandex browser test

---------

Co-authored-by: Carlos Azevedo <[email protected]>
Co-authored-by: Louis <[email protected]>
* fix: update Brave Browser regex

* fix brave browser regex

---------

Co-authored-by: Carlos Azevedo <[email protected]>
* update vivaldi browser regex to match multiple versioning structures

* feat: add Huawei Browser

* feat: add AVG

* feat: add Avast Secure Browser

* feat: add Instabridge browser

* feat: add Aloha Browser

* fix AVG browser test

* fix: remove unnecessary capturing group

---------

Co-authored-by: Carlos Azevedo <[email protected]>
`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
…de on

The desktop mode on both those applications changes the user-agent, making it
say that the device runs Mac OS X. However, this still runs on iOS, and should
be parsed as is.
This is supported by the JS library, but not by all the others. This sets the
model to Chromecast, to prevent any possible error going on, as the model is
needed in that regex.
fix(device): ensure chromecast parsing doesn't return null
…egex

fix: update ecosia browser regex to match multiple versioning structures
* feat: add new iOS versions

* get minor part from Darwin minor

* delete wrong test case

* wrong match group
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.