How to prevent to enter the Cyrillic alphabet after the command?

vk.updates.hear(/^(?:mini)\s?([^]+)?/i, (message) => { 
 if (!message.$match[1]) {
 return message.send(`💡 to get the statistics of a certain player on SP Mini, type: MINI NICKNAME`);
 } 
 if (message.$match[1].length > 20) {
 return message.send(`‚ö†Maximum nickname length of 20 characters.`);
 }


Required if message.$match[1] contains Cyrillic to send the response
March 19th 20 at 08:25
1 answer
March 19th 20 at 08:27
Solution
if (/[a-ll]/i.test(message.$match[1])) {
 // do something
}

Find more questions by tags VKontakteJavaScript