mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
UI fixes
Fixed: Series search won't break when term contains brackets Fixed: Attempting to apply the activity spinner incorrectly
This commit is contained in:
@@ -34,11 +34,8 @@ define(
|
||||
|
||||
var substringMatcher = function() {
|
||||
return function findMatches(q, cb) {
|
||||
// regex used to determine if a string contains the substring `q`
|
||||
var substrRegex = new RegExp(q, 'i');
|
||||
|
||||
var matches = _.select(SeriesCollection.toJSON(), function (series) {
|
||||
return substrRegex.test(series.title);
|
||||
return series.title.toLowerCase().indexOf(q.toLowerCase()) > -1;
|
||||
});
|
||||
|
||||
cb(matches);
|
||||
|
||||
Reference in New Issue
Block a user