Skip to content

Commit a4b87ad

Browse files
[chore] switch to uaparser.dev for example parsing (#3048)
1 parent 23a8cf1 commit a4b87ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/registry/attributes/user-agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Describes user-agent attributes.
1818
| <a id="user-agent-original" href="#user-agent-original">`user_agent.original`</a> | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | string | Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. | `CERN-LineMode/2.15 libwww/2.17b3`; `Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1`; `YourApp/1.0.0 grpc-java-okhttp/1.27.2` |
1919
| <a id="user-agent-version" href="#user-agent-version">`user_agent.version`</a> | ![Development](https://img.shields.io/badge/-development-blue) | string | Version of the user-agent extracted from original. Usually refers to the browser's version [2] | `14.1.2`; `1.0.0` |
2020

21-
**[1] `user_agent.name`:** [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name SHOULD be selected. In such a scenario it should align with `user_agent.version`
21+
**[1] `user_agent.name`:** [Example](https://uaparser.dev/#demo) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name SHOULD be selected. In such a scenario it should align with `user_agent.version`
2222

23-
**[2] `user_agent.version`:** [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version SHOULD be selected. In such a scenario it should align with `user_agent.name`
23+
**[2] `user_agent.version`:** [Example](https://uaparser.dev/#demo) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version SHOULD be selected. In such a scenario it should align with `user_agent.name`
2424

2525
## User-agent OS Attributes
2626

model/user-agent/registry.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ groups:
2020
Name of the user-agent extracted from original. Usually refers to the browser's name.
2121
examples: ["Safari", "YourApp"]
2222
note: >
23-
[Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using
23+
[Example](https://uaparser.dev/#demo) of extracting browser's name from original string. In the case of using
2424
a user-agent for non-browser products, such as microservices with multiple names/versions inside the
2525
`user_agent.original`, the most significant name SHOULD be selected. In such a scenario it should align with
2626
`user_agent.version`
@@ -31,7 +31,7 @@ groups:
3131
Version of the user-agent extracted from original. Usually refers to the browser's version
3232
examples: ["14.1.2", "1.0.0"]
3333
note: >
34-
[Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of
34+
[Example](https://uaparser.dev/#demo) of extracting browser's version from original string. In the case of
3535
using a user-agent for non-browser products, such as microservices with multiple names/versions inside the
3636
`user_agent.original`, the most significant version SHOULD be selected. In such a scenario it should align
3737
with `user_agent.name`

0 commit comments

Comments
 (0)