From 93a5a00a1816e04c716077f4d7517d67191e448d Mon Sep 17 00:00:00 2001 From: Slendy Date: Sat, 12 Feb 2022 02:23:38 -0600 Subject: [PATCH] Levels can have spaces in them --- ProjectLighthouse/Pages/SlotsPage.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse/Pages/SlotsPage.cshtml.cs b/ProjectLighthouse/Pages/SlotsPage.cshtml.cs index 970aeca0..4687223a 100644 --- a/ProjectLighthouse/Pages/SlotsPage.cshtml.cs +++ b/ProjectLighthouse/Pages/SlotsPage.cshtml.cs @@ -32,7 +32,7 @@ public class SlotsPage : BaseLayout { if (string.IsNullOrWhiteSpace(name)) name = ""; - this.SearchValue = name.Replace(" ", string.Empty); + this.SearchValue = name.Trim(); this.SlotCount = await this.Database.Slots.CountAsync(p => p.Name.Contains(this.SearchValue));