Make search case-insensitive
This commit is contained in:
parent
7b4d0db96d
commit
65cf25e0ff
|
@ -30,7 +30,7 @@ const searchByName = query => new Promise(async (resolve, reject) => {
|
|||
.then(function(data) {
|
||||
if (data.total > 0) {
|
||||
const video = data.data[0]
|
||||
if (video.name === query) {
|
||||
if (_.toLower(video.name) === _.toLower(query)) {
|
||||
resolve(video);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue