aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-26 20:37:27 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-26 20:37:27 +0200
commitcf6412e85d8f5929efa99b63fcd552b8408c29f2 (patch)
treee2492d913dd77a835112d27a9fcc4fd65656af3a /server/models/video.js
parent3737bbafb109a79f77c3047eb9b2791e6b57344e (diff)
downloadPeerTube-cf6412e85d8f5929efa99b63fcd552b8408c29f2.tar.gz
PeerTube-cf6412e85d8f5929efa99b63fcd552b8408c29f2.tar.zst
PeerTube-cf6412e85d8f5929efa99b63fcd552b8408c29f2.zip
Server: videos search case insensitive
Diffstat (limited to 'server/models/video.js')
-rw-r--r--server/models/video.js2
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)