From b2f4af97425f1b8cd6ca9457ffdd82a7b62a121b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20M=E1=BA=A1nh=20Th=E1=BA=AFng?= Date: Fri, 18 Dec 2020 13:23:20 +0700 Subject: [PATCH 1/2] fix: ua-parser/uap-java/issues/51 (support Postman user-agent) --- regexes.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regexes.yaml b/regexes.yaml index 31a76724..e2daba3e 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -138,7 +138,7 @@ user_agent_parsers: - regex: '(DAVdroid)/(\d+)\.(\d+)(?:\.(\d+)|)' # Downloader ... - - regex: '(Google-HTTP-Java-Client|Apache-HttpClient|Go-http-client|scalaj-http|http%20client|Python-urllib|HttpMonitor|TLSProber|WinHTTP|JNLP|okhttp|aihttp|reqwest|axios|unirest-(?:java|python|ruby|nodejs|php|net))(?:[ /](\d+)(?:\.(\d+)|)(?:\.(\d+)|)|)' + - regex: '(Google-HTTP-Java-Client|Apache-HttpClient|PostmanRuntime|Go-http-client|scalaj-http|http%20client|Python-urllib|HttpMonitor|TLSProber|WinHTTP|JNLP|okhttp|aihttp|reqwest|axios|unirest-(?:java|python|ruby|nodejs|php|net))(?:[ /](\d+)(?:\.(\d+)|)(?:\.(\d+)|)|)' # Pinterestbot - regex: '(Pinterest(?:bot|))/(\d+)(?:\.(\d+)|)(?:\.(\d+)|)[;\s(]+\+https://www.pinterest.com/bot.html' From 6f1c62c77ece7c7371624e6049aae668dfda8c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20M=E1=BA=A1nh=20Th=E1=BA=AFng?= Date: Thu, 18 Feb 2021 14:12:26 +0700 Subject: [PATCH 2/2] add testcase for support Postman user-agent --- tests/test_device.yaml | 5 +++++ tests/test_os.yaml | 7 +++++++ tests/test_ua.yaml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/tests/test_device.yaml b/tests/test_device.yaml index 2edfb532..e94fa6d9 100644 --- a/tests/test_device.yaml +++ b/tests/test_device.yaml @@ -80434,3 +80434,8 @@ test_cases: family: 'Spider' brand: 'Spider' model: 'Smartphone' + + - user_agent_string: 'PostmanRuntime/7.20.1' + family: 'Other' + brand: + model: diff --git a/tests/test_os.yaml b/tests/test_os.yaml index 819034af..cdb844b4 100644 --- a/tests/test_os.yaml +++ b/tests/test_os.yaml @@ -2881,3 +2881,10 @@ test_cases: minor: patch: patch_minor: + + - user_agent_string: 'PostmanRuntime/7.20.1' + family: 'Other' + major: + minor: + patch: + patch_minor: diff --git a/tests/test_ua.yaml b/tests/test_ua.yaml index 08fbce9c..4e6b359c 100644 --- a/tests/test_ua.yaml +++ b/tests/test_ua.yaml @@ -8334,3 +8334,9 @@ test_cases: major: '100' minor: '7' patch: + + - user_agent_string: 'PostmanRuntime/7.20.1' + family: 'PostmanRuntime' + major: '7' + minor: '20' + patch: '1'