switch search to Contains
This commit is contained in:
parent
d327095b4b
commit
4210c8e0ed
|
@ -26,7 +26,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||||
throw new ArgumentNullException("searchTerm");
|
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…
Reference in New Issue
Block a user