Server: videos search case insensitive
This commit is contained in:
parent
3737bbafb1
commit
cf6412e85d
|
@ -245,7 +245,7 @@ function search (value, field, start, count, sort, callback) {
|
||||||
if (field === 'magnetUri' || field === 'tags') {
|
if (field === 'magnetUri' || field === 'tags') {
|
||||||
query[field] = value
|
query[field] = value
|
||||||
} else {
|
} else {
|
||||||
query[field] = new RegExp(value)
|
query[field] = new RegExp(value, 'i')
|
||||||
}
|
}
|
||||||
|
|
||||||
modelUtils.listForApiWithCount.call(this, query, start, count, sort, callback)
|
modelUtils.listForApiWithCount.call(this, query, start, count, sort, callback)
|
||||||
|
|
Loading…
Reference in New Issue