diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-10-26 20:37:27 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-10-26 20:37:27 +0200 |
commit | cf6412e85d8f5929efa99b63fcd552b8408c29f2 (patch) | |
tree | e2492d913dd77a835112d27a9fcc4fd65656af3a /server/models | |
parent | 3737bbafb109a79f77c3047eb9b2791e6b57344e (diff) | |
download | PeerTube-cf6412e85d8f5929efa99b63fcd552b8408c29f2.tar.gz PeerTube-cf6412e85d8f5929efa99b63fcd552b8408c29f2.tar.zst PeerTube-cf6412e85d8f5929efa99b63fcd552b8408c29f2.zip |
Server: videos search case insensitive
Diffstat (limited to 'server/models')
-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) |