Skip to content

Commit

Permalink
fix: Fix duplicate new line
Browse files Browse the repository at this point in the history
  • Loading branch information
cma2819 committed Dec 18, 2024
1 parent 4e8fbf3 commit 37ac21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/twitter.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export const tweet = async (text: string, files: string[]) => {
throw new Error("No tweet input label");
}
await input.click({ count: 3 });
const fixedText = text.replace(/\r\n|\r/, "\n");
const fixedText = text.replace(/\r\n|\r/g, "\n");
await input.type(fixedText);

if (files.length >= 1) {
Expand Down

0 comments on commit 37ac21d

Please sign in to comment.