Server: videos search case insensitive
authorChocobozzz <florian.bigard@gmail.com>
Wed, 26 Oct 2016 18:37:27 +0000 (20:37 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Wed, 26 Oct 2016 18:37:27 +0000 (20:37 +0200)
server/models/video.js

index be3e80598e84f96eb5290e0a44bdeca3501aa2cf..673ccabf8ef3337f05cb6f215dc86598558a59a9 100644 (file)
@@ -245,7 +245,7 @@ function search (value, field, start, count, sort, callback) {
   if (field === 'magnetUri' || field === 'tags') {
     query[field] = value
   } else {
-    query[field] = new RegExp(value)
+    query[field] = new RegExp(value, 'i')
   }
 
   modelUtils.listForApiWithCount.call(this, query, start, count, sort, callback)