Removed unused code. Minor code changes.

This commit is contained in:
Jeddunk 2021-01-19 20:37:13 +01:00
parent 1602937be3
commit 950844a14b
6 changed files with 27 additions and 61 deletions

View file

@ -177,7 +177,7 @@ namespace GoldbergGUI.Core.Services
public SteamApp GetAppByName(string name)
{
_log.Info($"Trying to get app {name}");
var comparableName = Regex.Replace(name, Misc.SpecialCharsRegex, "").ToLower();
var comparableName = Regex.Replace(name, Misc.AlphaNumOnlyRegex, "").ToLower();
var app = _caches[AppType.Game].Cache.FirstOrDefault(x => x.CompareName(comparableName));
if (app != null) _log.Info($"Successfully got app {app}");
return app;