Update editor.ts
This commit is contained in:
1 parent
246f729f80
commit
45b61cc60b
1 file changed
+1
-1
@@ -147,7 +147,7 @@ async function getInput(channel: Channel) {
|
|||||||
|
|
||||||
function getOptions(channelsIndex, channel: Channel) {
|
function getOptions(channelsIndex, channel: Channel) {
|
||||||
const channelId = generateCode(channel.name, defaultCountry)
|
const channelId = generateCode(channel.name, defaultCountry)
|
||||||
const query = channel.name.replace(/\s(SD|TV|HD|SD\/HD)$/i, '').replace(/\+/gi, '')
|
const query = channel.name.replace(/\s(SD|TV|HD|SD\/HD|\(|\))$/i, '').replace(/\+/gi, '')
|
||||||
const similar = channelsIndex.search(query).map(item => new ApiChannel(item))
|
const similar = channelsIndex.search(query).map(item => new ApiChannel(item))
|
||||||
|
|
||||||
const variants = new Collection()
|
const variants = new Collection()
|
||||||
|
|||||||
Reference in new issue
Block a user