mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-12 10:00:07 -04:00
Add support spaces in query
This commit is contained in:
parent
20db8190b5
commit
2c9c45d6b3
1 changed files with 2 additions and 3 deletions
|
@ -16,8 +16,8 @@ export function search(_query) {
|
|||
let field = '_key'
|
||||
if (value.includes(':')) {
|
||||
;[field, value] = value.split(':')
|
||||
value = value.replace(/\"/g, '')
|
||||
}
|
||||
value = value.replace(/\"/g, '')
|
||||
|
||||
if (field && value) {
|
||||
filters.push({ field, value })
|
||||
|
@ -156,8 +156,7 @@ function generateSearchKey(c) {
|
|||
return [c.id, c.name, c.native_name, translit]
|
||||
.map(v => v || '')
|
||||
.filter(v => v)
|
||||
.join('_')
|
||||
.replace(/\s/g, '')
|
||||
.join('|')
|
||||
.toLowerCase()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue