Skip to content

Commit

Permalink
Bump version to 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dkgv committed Nov 23, 2020
1 parent f1bb8db commit 98be87c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Pinpoint.Plugin.Dictionary/DictionaryPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ public async IAsyncEnumerable<AbstractQueryResult> Process(Query query)
}

// Grab at most first five definitions
var all = container.QuerySelectorAll("div");
for (var i = 0; i < Math.Min(all.Length, 5); i++)
var definitions = container.QuerySelectorAll("div");
for (var i = 0; i < Math.Min(definitions.Length, 5); i++)
{
var definition = all[i];
var text = definition.TextContent;
var text = definitions[i].TextContent;
if (text.Contains(":"))
{
text = text.Split(":")[0];
Expand Down
2 changes: 1 addition & 1 deletion Pinpoint.Plugin/AppConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public static class AppConstants
public static readonly string SettingsFilePath = MainDirectory + "settings.json";
public static readonly string HotkeyIdentifier = "Show/Hide";

public const string Version = "0.0.4";
public const string Version = "0.0.5";
}
}

0 comments on commit 98be87c

Please sign in to comment.