Skip to content

Commit

Permalink
💥
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed May 12, 2023
1 parent 6fa9d42 commit e335278
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function bef(obj: any, name: string, cb: (args: any[]) => any) {

function decap(msg: { content?: string; }) {
if (!msg?.content) return;
msg.content = msg.content?.replace(/\b[A-Z](?=[a-z]*\b)/g, m => m.toLowerCase());
msg.content = msg.content.replace(/\b[A-Z](?=[a-z]*\b)/g, m => m.toLowerCase());
}

bef(findByProps("editMessage", "sendMessage"), "sendMessage", args => decap(args[1]));
Expand Down

0 comments on commit e335278

Please sign in to comment.