Skip to content

Commit

Permalink
1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
EricZimmerman committed Oct 16, 2023
1 parent 2534c66 commit 03431b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions JumpList.Test/JumpList.Test.csproj
Expand Up @@ -16,9 +16,9 @@
<ProjectReference Include="..\JumpList\JumpList.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="OleCf" Version="1.1.1" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="OleCf" Version="1.2.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
</ItemGroup>
</Project>
13 changes: 6 additions & 7 deletions JumpList/AppIDList.cs
Expand Up @@ -17,12 +17,9 @@ public AppIdList()
string[] stringSeparators = {"\r\n"};

var lines = Resources.AppIDs.Split(stringSeparators, StringSplitOptions.None);


_appIDs = new Dictionary<string, string>();



_appIDs = new Dictionary<string, string>();

IterateLines(lines);
}

Expand All @@ -32,6 +29,8 @@ public string GetDescriptionFromId(string id)

var intId = id.ToLowerInvariant();

_appIDs.TryGetValue(intId, out desc);

if (_appIDs.ContainsKey(intId))
{
desc = _appIDs[id];
Expand All @@ -55,9 +54,9 @@ private int IterateLines(IEnumerable<string> lines)
continue;
}

var id = segs[0].Trim().ToLowerInvariant();
var id = segs[0].Trim().ToLowerInvariant().TrimStart('"').TrimEnd('"');
var desc = segs[1].Trim();

if (_appIDs.ContainsKey(id) == false)
{
_appIDs.Add(id, desc);
Expand Down
5 changes: 2 additions & 3 deletions JumpList/JumpList.csproj
Expand Up @@ -10,11 +10,10 @@
<Copyright>Eric Zimmerman</Copyright>
<PackageProjectUrl>https://github.com/EricZimmerman/jumplist</PackageProjectUrl>
<RepositoryUrl>https://github.com/EricZimmerman/jumplist</RepositoryUrl>
<Version>1.2.5</Version>
<Version>1.2.6</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<LangVersion>10</LangVersion>


<PackageTags>jumplist, lnk, link</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>icon.png</PackageIcon>
Expand All @@ -37,4 +36,4 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
</Project>

0 comments on commit 03431b9

Please sign in to comment.