handle case where user spams new lines

This commit is contained in:
Kire committed 2021-02-04 23:10:22 -05:00
1 parent 1fca1ac200
commit 37504feec7
7 files changed
+51 -13

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
export function getNewLineCount(message: string): number {
return message.split(/\r\n|\r|\n/).length;
}