From e708520a50ef2d706923d77cdb644203f08ad2f8 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Tue, 3 Nov 2015 21:10:26 +0100 Subject: [PATCH] Colon breaks search --- OurUmbraco/Our/Examine/OurSearcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OurUmbraco/Our/Examine/OurSearcher.cs b/OurUmbraco/Our/Examine/OurSearcher.cs index cbda6870..6ff49a67 100644 --- a/OurUmbraco/Our/Examine/OurSearcher.cs +++ b/OurUmbraco/Our/Examine/OurSearcher.cs @@ -54,7 +54,7 @@ namespace OurUmbraco.Our.Examine if (!string.IsNullOrEmpty(Term)) { - Term = Term.Replace("\"", string.Empty).Replace(" OR ", " ").Replace(" or ", " ").Replace("\\", string.Empty).Trim('*'); + Term = Term.Replace("\"", string.Empty).Replace(":", string.Empty).Replace(" OR ", " ").Replace(" or ", " ").Replace("\\", string.Empty).Trim('*'); // Replace double whitespaces with single space as they were giving errors Term = Regex.Replace(Term, @"\s{2,}", " ");