Skip to content

Commit dd6a410

Browse files
authored
Merge pull request elizaOS#1070 from Titan-Node/main
fix: Fixed twitter posts include from including `/n` in the text
2 parents 86a34e0 + 2b73a37 commit dd6a410

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/client-twitter/src/post.ts

+1
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ export class TwitterPostClient {
258258
.replace(/^\s*{?\s*"text":\s*"|"\s*}?\s*$/g, '') // Remove JSON-like wrapper
259259
.replace(/^['"](.*)['"]$/g, '$1') // Remove quotes
260260
.replace(/\\"/g, '"') // Unescape quotes
261+
.replace(/\\n/g, '\n') // Unescape newlines
261262
.trim();
262263
}
263264

0 commit comments

Comments
 (0)