Update editor.ts

This commit is contained in:
freearhey 2023-11-26 15:11:39 +03:00
parent 0ff123b7b1
commit 5b46419c6c

View file

@ -150,6 +150,7 @@ function getOptions(channelsIndex, channel: Channel) {
const query = channel.name
.replace(/\s(SD|TV|HD|SD\/HD|HDTV)$/i, '')
.replace(/(\(|\)|,)/gi, '')
.replace(/\-/gi, ' ')
.replace(/\+/gi, '')
const similar = channelsIndex.search(query).map(item => new ApiChannel(item))