Update editor.js

This commit is contained in:
freearhey 2023-06-30 19:55:14 +03:00
parent 95134277fe
commit 1ea04c53a9

View file

@ -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}`