@elizaos/plugin-bootstrap 1.0.0-beta.56 → 1.0.0-beta.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6031,6 +6031,7 @@ var postGeneratedHandler = async ({
6031
6031
  function cleanupPostText(text) {
6032
6032
  let cleanedText2 = text.replace(/^['"](.*)['"]$/, "$1");
6033
6033
  cleanedText2 = cleanedText2.replaceAll(/\\n/g, "\n\n");
6034
+ cleanedText2 = cleanedText2.replace(/([^\n])\n([^\n])/g, "$1\n\n$2");
6034
6035
  if (cleanedText2.length > 280) {
6035
6036
  cleanedText2 = truncateToCompleteSentence(cleanedText2, 280);
6036
6037
  }