diff --git a/packages/client-twitter/src/post.ts b/packages/client-twitter/src/post.ts index 93d8993025..9a3eb89934 100644 --- a/packages/client-twitter/src/post.ts +++ b/packages/client-twitter/src/post.ts @@ -522,6 +522,8 @@ export class TwitterPostClient { .replace(/^['"](.*)['"]$/g, "$1") // Remove quotes .replace(/\\"/g, '"') // Unescape quotes .replace(/\\n/g, "\n\n") // Unescape newlines, ensures double spaces + .replace(/^\d+\.\s*/gm, "") // Remove numbered list markers + .replace(/\s*\d+\.\s*$/, "") // Remove trailing numbers .trim(); }