mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
🐛 Fix: Linting requirements
This commit is contained in:
parent
5720bdc0ef
commit
48b5fd41e0
@ -20,8 +20,9 @@ import { isBase64, isURL } from 'class-validator';
|
|||||||
|
|
||||||
function isEmoji(str: string) {
|
function isEmoji(str: string) {
|
||||||
if (str === '') return true;
|
if (str === '') return true;
|
||||||
|
|
||||||
const emojiRegex = /^[\u{1F300}-\u{1F9FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}\u{1F000}-\u{1F02F}\u{1F0A0}-\u{1F0FF}\u{1F100}-\u{1F64F}\u{1F680}-\u{1F6FF}]$/u;
|
const emojiRegex =
|
||||||
|
/^[\u{1F300}-\u{1F9FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}\u{1F000}-\u{1F02F}\u{1F0A0}-\u{1F0FF}\u{1F100}-\u{1F64F}\u{1F680}-\u{1F6FF}]$/u;
|
||||||
return emojiRegex.test(str);
|
return emojiRegex.test(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user