expensify-common 2.0.82 → 2.0.84

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.
@@ -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: /(```(\r\n|\n))((?:\s*?(?!(?:\r\n|\n)?```(?!`))[\S])+\s*?(?:\r\n|\n))(```)/g,
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
@@ -653,13 +653,13 @@ class ExpensiMark {
653
653
  name: 'userMention',
654
654
  regex: /<mention-user accountID="(\d+)" *\/>/gi,
655
655
  replacement: (extras, _match, g1, _offset, _string) => {
656
- var _a;
656
+ var _a, _b;
657
657
  const accountToNameMap = extras.accountIDToName;
658
658
  if (!accountToNameMap || !accountToNameMap[g1]) {
659
659
  ExpensiMark.Log.alert('[ExpensiMark] Missing account name', { accountID: g1 });
660
660
  return '@Hidden';
661
661
  }
662
- return `@${(_a = extras.accountIDToName) === null || _a === void 0 ? void 0 : _a[g1]}`;
662
+ return `@${str_1.default.removeSMSDomain((_b = (_a = extras.accountIDToName) === null || _a === void 0 ? void 0 : _a[g1]) !== null && _b !== void 0 ? _b : '')}`;
663
663
  },
664
664
  },
665
665
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expensify-common",
3
- "version": "2.0.82",
3
+ "version": "2.0.84",
4
4
  "author": "Expensify, Inc.",
5
5
  "description": "Expensify libraries and components shared across different repos",
6
6
  "homepage": "https://expensify.com",