mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 02:16:40 -05:00
Update editor.js
This commit is contained in:
@@ -118,6 +118,7 @@ async function getSimilar(list, channelId) {
|
||||
function generateCode(name, country) {
|
||||
const id = transliterate(name)
|
||||
.replace(/\+/gi, 'Plus')
|
||||
.replace(/^\&/gi, 'And')
|
||||
.replace(/[^a-z\d]+/gi, '')
|
||||
|
||||
return `${id}.${country}`
|
||||
|
||||
Reference in New Issue
Block a user