mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
handle case where user spams new lines
This commit is contained in:
1 parent
1fca1ac200
commit
37504feec7
7 files changed
+51
-13
No files matched your search
@@ -0,0 +1,4 @@
|
||||
|
||||
export function getNewLineCount(message: string): number {
|
||||
return message.split(/\r\n|\r|\n/).length;
|
||||
}
|
||||
Reference in new issue
Block a user