Skip to content

Commit b117683

Browse files
authored
Merge pull request #10614 from 3F/issue-10613
Add GetNuTool as a known client. Issue 10613
2 parents f9900cf + baa3a9f commit b117683

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

python/StatsLogParser/loginterpretation/knownclients.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,8 @@
223223

224224
# NuGet - Keep this one at the bottom of this file as a catch-all resolver
225225
- regex: '(NuGet)/?(\d+)\.(\d+)\.?(\d+)?'
226-
family_replacement: 'NuGet'
226+
family_replacement: 'NuGet'
227+
228+
# GetNuTool
229+
- regex: '(GetNuTool)/(\d+)\.(\d+)\.?(\d+)?'
230+
family_replacement: 'GetNuTool'

python/StatsLogParser/tests/test_useragentparser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
("Bazel/release 6.0.0", "Bazel", "6", "0", "0"),
6666
("Visual Studio/6.4.0", "Visual Studio", "6", "4", "0"),
6767
("NuGetMirror/6.0.0", "NuGetMirror", "6", "0", "0"),
68-
("BaGet/1.0.0", "BaGet", "1", "0", "0")
68+
("BaGet/1.0.0", "BaGet", "1", "0", "0"),
69+
("GetNuTool/1.10.0.5939+e5f5c45", "GetNuTool", "1", "10", "0")
6970
])
7071
def test_recognizes_custom_clients(user_agent, expected_client, expected_major, expected_minor, expected_patch):
7172
parsed = UserAgentParser.parse(user_agent)

0 commit comments

Comments
 (0)