projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3737bba
)
Server: videos search case insensitive
author
Chocobozzz
<florian.bigard@gmail.com>
Wed, 26 Oct 2016 18:37:27 +0000
(20:37 +0200)
committer
Chocobozzz
<florian.bigard@gmail.com>
Wed, 26 Oct 2016 18:37:27 +0000
(20:37 +0200)
server/models/video.js
patch
|
blob
|
history
diff --git
a/server/models/video.js
b/server/models/video.js
index be3e80598e84f96eb5290e0a44bdeca3501aa2cf..673ccabf8ef3337f05cb6f215dc86598558a59a9 100644
(file)
--- 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)