@timardex/cluemart-shared 1.5.601 → 1.5.602

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.mjs CHANGED
@@ -8532,7 +8532,7 @@ var SHARE_DESCRIPTION_SECTION_SEPARATOR = " \xB7 ";
8532
8532
  var SHARE_DESCRIPTION_SECTION_BREAK = "\n\n";
8533
8533
  var OG_DESCRIPTION_LINE_BREAK = "
";
8534
8534
  function joinShareOgDescriptionSections(sections) {
8535
- return sections.map((section) => typeof section === "string" ? section.trim() : "").filter((section) => section.length > 0).join(OG_DESCRIPTION_LINE_BREAK);
8535
+ return sections.map((section) => typeof section === "string" ? section.trim() : "").filter((section) => section.length > 0).map((section) => section.replace(/\n/g, OG_DESCRIPTION_LINE_BREAK)).join(OG_DESCRIPTION_LINE_BREAK);
8536
8536
  }
8537
8537
  function joinShareDescriptionSections(sections) {
8538
8538
  return sections.filter((section) => Boolean(section)).join(SHARE_DESCRIPTION_SECTION_BREAK);