expensify-common 2.0.71 → 2.0.73

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.
@@ -187,7 +187,7 @@ class ExpensiMark {
187
187
  if (!g1.trim()) {
188
188
  return match;
189
189
  }
190
- return `<a href="${str_1.default.sanitizeURL(g2)}" data-raw-href="${g2}" data-link-variant="labeled" target="_blank" rel="noreferrer noopener">${g1.trim()}</a>`;
190
+ return `<a href="${str_1.default.sanitizeURL(g2)}" data-raw-href="${g2}" data-link-variant="labeled" target="_blank" rel="noreferrer noopener">${g1}</a>`;
191
191
  },
192
192
  },
193
193
  /**
@@ -215,7 +215,7 @@ class ExpensiMark {
215
215
  */
216
216
  {
217
217
  name: 'reportMentions',
218
- regex: /(?<![^ \n*~_])(#[\p{Ll}0-9-]{1,80})(?![^<]*(?:<\/pre>|<\/code>))/gimu,
218
+ regex: /(?<![^ \n*~_])(#[\p{Ll}0-9-]{1,80})(?![^<]*(?:<\/pre>|<\/code>|<\/a>))/gimu,
219
219
  replacement: '<mention-report>$1</mention-report>',
220
220
  },
221
221
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expensify-common",
3
- "version": "2.0.71",
3
+ "version": "2.0.73",
4
4
  "author": "Expensify, Inc.",
5
5
  "description": "Expensify libraries and components shared across different repos",
6
6
  "homepage": "https://expensify.com",
@@ -52,7 +52,7 @@
52
52
  "@types/react-dom": "^18.3.0",
53
53
  "@types/ua-parser-js": "^0.7.39",
54
54
  "@typescript-eslint/eslint-plugin": "^7.16.1",
55
- "@typescript-eslint/parser": "^7.16.1",
55
+ "@typescript-eslint/parser": "^7.17.0",
56
56
  "babel-jest": "^29.0.0",
57
57
  "babelify": "10.0.0",
58
58
  "eslint": "^8.57.0",