Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 5aa8150

Browse files
VSIX user agent string update (#312)
* VSIX user agent string update
1 parent 8ae07d8 commit 5aa8150

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/Stats.ImportAzureCdnStatistics/knownclients.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@
161161
- regex: '(Cake NuGet Client)/(\d+)\.(\d+)\.?(\d+)?'
162162
family_replacement: 'Cake NuGet Client'
163163

164+
# NuGet Client V3
165+
- regex: '(NuGet VS VSIX)/(\d+)\.(\d+)\.?(\d+)?'
166+
family_replacement: 'NuGet VS VSIX'
167+
164168
# NuGet - Keep this one at the bottom of this file as a catch-all resolver
165169
- regex: '(NuGet)/?(\d+)\.(\d+)\.?(\d+)?'
166170
family_replacement: 'NuGet'

tests/Tests.Stats.ImportAzureCdnStatistics/UserAgentParserFacts.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public TheFromPackageStatisticMethod(ITestOutputHelper testOutputHelper)
6666
[InlineData("NuGet .NET Core MSBuild Task/4.4.0 (Microsoft Windows 10.0.15063)", "NuGet .NET Core MSBuild Task", "4", "4", "0")]
6767
[InlineData("NuGet Desktop MSBuild Task/4.4.0 (Microsoft Windows 10.0.15063)", "NuGet Desktop MSBuild Task", "4", "4", "0")]
6868
[InlineData("Cake NuGet Client/4.3.0 (Microsoft Windows 10.0.15063)", "Cake NuGet Client", "4", "3", "0")]
69+
[InlineData("NuGet VS VSIX/4.3.0 (Microsoft Windows 10.0.15063)", "NuGet VS VSIX", "4", "3", "0")]
6970
public void RecognizesCustomClients(string userAgent, string expectedClient, string expectedMajor, string expectedMinor, string expectedPatch)
7071
{
7172
var parsed = _parser.ParseUserAgent(userAgent);

0 commit comments

Comments
 (0)