Skip to content

Commit

Permalink
Replace &,# and * from keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
nishinji committed Nov 25, 2023
1 parent e51b13f commit b9c61f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vita3KBot/Commands/Compatibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public async Task Compatability([Remainder, Summary("Game name to search")]strin
State = ItemState.Open,
};

var keywords = keyword.ToLower().Split(' ');
var keywords = keyword.ToLower().Replace("&", "").Replace("#", "").Replace("*", "").Split(' ');
var searchResults = (await github.Search.SearchIssues(search)).Items;
// The following makes sure all the keywords are contained in each title, and removes the ones that don't.
var filteredResults = searchResults.Where(
Expand Down

0 comments on commit b9c61f8

Please sign in to comment.