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: update ecosia browser regex to match multiple versioning structures #595

Merged

Conversation

csazevedo
Copy link
Contributor

Ecosia for Android changed it's versioning structure. I also changed Ecosia for iOS to accept the same structure for consistency and in case it will change in the future.

family_replacement: 'Ecosia iOS'
- regex: '(Ecosia) android@(\d+)\.(\d+)\.(\d+)\.(\d+)'
- regex: '(Ecosia) android@(\d+)(?:\.(\d+)|)(?:\.(\d+)|)(?:\.(\d+)|)'
Copy link

@ecotopian ecotopian Jul 10, 2024

Choose a reason for hiding this comment

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

@csazevedo Loads of thanks for creating the PR! ✨ 🌳

For the sake of simplicity I would suggest to use (Ecosia) android@(\d+)

This would also match both versions, is easier to read and takes less processing steps. Same for iOS. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would be ok with that but it doesn't follow the same pattern as the other ones that try to capture major, minor and patch versions. In this case if only the major version is provided it will be captured. If there's more detailed information it also captures it.

Choose a reason for hiding this comment

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

I see - I did not consider that part. In that case your solution works just fine!

Copy link

@ecotopian ecotopian left a comment

Choose a reason for hiding this comment

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

Looks great to me!

@ecotopian
Copy link

@lbarthon: Sincerest apologies for the shoutout and creating a sense of urgency.

Though in my position of being the EM of the Native Apps team at Ecosia, I'd appreciate if you could give this PR a look and merge it in order to unblock the bugfix. THX! 🙏

@migueldemoura migueldemoura merged commit 1458dfa into ua-parser:master Jul 10, 2024
3 checks passed
@lbarthon
Copy link
Contributor

@ecotopian no worries, @migueldemoura already had a look and this is merged! Thanks to all of you!

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.

4 participants