From: Chocobozzz Date: Wed, 26 Oct 2016 18:37:27 +0000 (+0200) Subject: Server: videos search case insensitive X-Git-Tag: v0.0.1-alpha~657 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cf6412e85d8f5929efa99b63fcd552b8408c29f2;p=oweals%2Fpeertube.git Server: videos search case insensitive --- 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)