Skip to content

Commit 48b5fd4

Browse files
committed
🐛 Fix: Linting requirements
1 parent 5720bdc commit 48b5fd4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/api/controllers/sendMessage.controller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ import { isBase64, isURL } from 'class-validator';
2020

2121
function isEmoji(str: string) {
2222
if (str === '') return true;
23-
24-
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;
23+
24+
const emojiRegex =
25+
/^[\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;
2526
return emojiRegex.test(str);
2627
}
2728

0 commit comments

Comments
 (0)