ensures query fields contained the lowercased iso code

This commit is contained in:
Shannon
2018-12-11 17:57:40 +11:00
parent 1fe3045b4c
commit 8048d57ffe

View File

@@ -139,7 +139,7 @@ namespace Umbraco.Web.Search
// then nodeName will be matched normally with wildcards
// the rest will be normal without wildcards
var allLangs = _languageService.GetAllLanguages().Select(x => x.IsoCode).ToList();
var allLangs = _languageService.GetAllLanguages().Select(x => x.IsoCode.ToLowerInvariant()).ToList();
//check if text is surrounded by single or double quotes, if so, then exact match
var surroundedByQuotes = Regex.IsMatch(query, "^\".*?\"$")