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.
- package/dist/ExpensiMark.js +3 -2
- package/dist/str.js +1 -0
- package/dist/utils.js +1 -0
- package/package.json +1 -1
package/dist/ExpensiMark.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);
|
|
@@ -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
package/dist/utils.js
CHANGED