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.
- package/dist/ExpensiMark.js +3 -0
- package/package.json +1 -1
package/dist/ExpensiMark.js
CHANGED
|
@@ -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
|
}
|