expensify-common 2.0.45 → 2.0.46

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.
@@ -867,6 +867,9 @@ class ExpensiMark {
867
867
  const replacedMatch = shouldKeepRawInput ? replacement(EXTRAS_DEFAULT, match[0], linkText, match[2], match[3]) : replacement(EXTRAS_DEFAULT, match[0], linkText, match[3]);
868
868
  replacedText = replacedText.concat(replacedMatch);
869
869
  startIndex = match.index + match[0].length;
870
+ // Line breaks (`\n`) followed by empty contents are already removed
871
+ // but line breaks inside contents should be parsed to <br/> to skip `autoEmail` rule
872
+ replacedText = this.replace(replacedText, { filterRules: ['newline'], shouldEscapeText: false });
870
873
  // Now we move to the next match that the js regex found in the text
871
874
  match = regex.exec(textToCheck);
872
875
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expensify-common",
3
- "version": "2.0.45",
3
+ "version": "2.0.46",
4
4
  "author": "Expensify, Inc.",
5
5
  "description": "Expensify libraries and components shared across different repos",
6
6
  "homepage": "https://expensify.com",