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

Improve User-Agent parsing and add rests #223

Closed
petrdvorak opened this issue Oct 28, 2023 · 0 comments · Fixed by #224
Closed

Improve User-Agent parsing and add rests #223

petrdvorak opened this issue Oct 28, 2023 · 0 comments · Fixed by #224
Assignees

Comments

@petrdvorak
Copy link
Member

No description provided.

@petrdvorak petrdvorak self-assigned this Oct 28, 2023
@jandusil jandusil linked a pull request Nov 22, 2023 that will close this issue
petrdvorak added a commit that referenced this issue Dec 11, 2023
* Fix #223: Improve User-Agent parsing and add rests

* Reformat code

* Add test data

* Refactor to parametrized test

* Add surefire

* Add failure message

* Multiple prefixes

* Make v1 elements optional

* Parse network, os, osVersion and model from another examples

* Rename constant

* Prefer \\d

* Explicit operator precedence

* Extract sub patterns

---------

Co-authored-by: Lubos Racansky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants