switch search to Contains

pull/702/head
Luke Pulverenti 12 years ago
parent d327095b4b
commit 4210c8e0ed

@ -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);
}
}
}

Loading…
Cancel
Save