diff options
Diffstat (limited to 'server/models/video.js')
-rw-r--r-- | server/models/video.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video.js b/server/models/video.js index be3e80598..673ccabf8 100644 --- a/server/models/video.js +++ b/server/models/video.js | |||
@@ -245,7 +245,7 @@ function search (value, field, start, count, sort, callback) { | |||
245 | if (field === 'magnetUri' || field === 'tags') { | 245 | if (field === 'magnetUri' || field === 'tags') { |
246 | query[field] = value | 246 | query[field] = value |
247 | } else { | 247 | } else { |
248 | query[field] = new RegExp(value) | 248 | query[field] = new RegExp(value, 'i') |
249 | } | 249 | } |
250 | 250 | ||
251 | modelUtils.listForApiWithCount.call(this, query, start, count, sort, callback) | 251 | modelUtils.listForApiWithCount.call(this, query, start, count, sort, callback) |