mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update editor.js
This commit is contained in:
parent
95134277fe
commit
1ea04c53a9
1 changed files with 1 additions and 0 deletions
|
@ -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}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue