expensify-common 2.0.83 → 2.0.85
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 +2 -2
- package/package.json +1 -1
package/dist/ExpensiMark.js
CHANGED
|
@@ -68,7 +68,7 @@ class ExpensiMark {
|
|
|
68
68
|
{
|
|
69
69
|
name: 'codeFence',
|
|
70
70
|
// ` is a backtick symbol we are matching on three of them before then after a new line character
|
|
71
|
-
regex: /(```
|
|
71
|
+
regex: /(```.*?(\r\n|\n))((?:\s*?(?!(?:\r\n|\n)?```(?!`))[\S])+\s*?(?:\r\n|\n))(```)/g,
|
|
72
72
|
// We're using a function here to perform an additional replace on the content
|
|
73
73
|
// inside the backticks because Android is not able to use <pre> tags and does
|
|
74
74
|
// not respect whitespace characters at all like HTML does. We do not want to mess
|
|
@@ -215,7 +215,7 @@ class ExpensiMark {
|
|
|
215
215
|
*/
|
|
216
216
|
{
|
|
217
217
|
name: 'reportMentions',
|
|
218
|
-
regex: /(?<![^ \n*~_])(#[\p{Ll}0-9-]{1,
|
|
218
|
+
regex: /(?<![^ \n*~_])(#[\p{Ll}0-9-]{1,99})(?![^<]*(?:<\/pre>|<\/code>|<\/a>))/gimu,
|
|
219
219
|
replacement: '<mention-report>$1</mention-report>',
|
|
220
220
|
},
|
|
221
221
|
/**
|