From cf6412e85d8f5929efa99b63fcd552b8408c29f2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 26 Oct 2016 20:37:27 +0200 Subject: Server: videos search case insensitive --- server/models/video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { 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) -- cgit v1.2.3