expensify-common 2.0.41 → 2.0.42

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.
@@ -894,8 +894,8 @@ class ExpensiMark {
894
894
  if (text.trim().length === 0 && !text.match(/\n/)) {
895
895
  return;
896
896
  }
897
- // Insert '\n' unless it ends with '\n' or '>' or it's the last element.
898
- if (text.match(/[\n|>][>]?[\s]?$/) || index === splitText.length - 1) {
897
+ // Insert '\n' unless it ends with '\n' or '>' or it's the last element, or if it's a header ('# ') with a space.
898
+ if (text.match(/[\n|>][>]?[\s]?$/) || index === splitText.length - 1 || text === '# ') {
899
899
  joinedText += text;
900
900
  }
901
901
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expensify-common",
3
- "version": "2.0.41",
3
+ "version": "2.0.42",
4
4
  "author": "Expensify, Inc.",
5
5
  "description": "Expensify libraries and components shared across different repos",
6
6
  "homepage": "https://expensify.com",