expensify-common 2.0.54 → 2.0.56

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.
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'worklet';
2
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
4
  if (k2 === undefined) k2 = k;
4
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -448,12 +449,12 @@ class ExpensiMark {
448
449
  // Use [\s\S]* instead of .* to match newline
449
450
  {
450
451
  name: 'italic',
451
- regex: /<(em|i)(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi,
452
+ regex: /<(em|i)\b(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi,
452
453
  replacement: '_$2_',
453
454
  },
454
455
  {
455
456
  name: 'bold',
456
- regex: /<(b|strong)(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi,
457
+ regex: /<(b|strong)\b(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi,
457
458
  replacement: (extras, match, tagName, innerContent) => {
458
459
  // To check if style attribute contains bold font-weight
459
460
  const isBoldFromStyle = (style) => {
package/dist/str.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'worklet';
2
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
4
  if (k2 === undefined) k2 = k;
4
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
package/dist/utils.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'worklet';
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.isWindowAvailable = isWindowAvailable;
4
5
  exports.isNavigatorAvailable = isNavigatorAvailable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expensify-common",
3
- "version": "2.0.54",
3
+ "version": "2.0.56",
4
4
  "author": "Expensify, Inc.",
5
5
  "description": "Expensify libraries and components shared across different repos",
6
6
  "homepage": "https://expensify.com",