This commit is contained in:
Eric Reed 2013-04-10 16:07:58 -04:00
commit 413fbca37e
2 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,7 @@ namespace MediaBrowser.Server.Implementations.Library
throw new ArgumentNullException("searchTerm");
}
return items.Where(i => i.Name.StartsWith(searchTerm, StringComparison.OrdinalIgnoreCase));
return items.Where(i => i.Name.IndexOf(searchTerm, StringComparison.OrdinalIgnoreCase) != -1);
}
}
}

View File

@ -17,7 +17,6 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace MediaBrowser.WebDashboard.Api