Skip to content

Commit 51edf1f

Browse files
matheusmartinsInspermatheusmartinsInsper
authored andcommitted
Fix: Linting requirements
1 parent 831b483 commit 51edf1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/controllers/sendMessage.controller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import { isBase64, isURL } from 'class-validator';
2121
function isEmoji(str: string) {
2222
if (str === '') return true;
2323

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;
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)