expensify-common 2.0.55 → 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 +2 -2
- package/package.json +1 -1
package/dist/ExpensiMark.js
CHANGED
|
@@ -449,12 +449,12 @@ class ExpensiMark {
|
|
|
449
449
|
// Use [\s\S]* instead of .* to match newline
|
|
450
450
|
{
|
|
451
451
|
name: 'italic',
|
|
452
|
-
regex: /<(em|i)(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi,
|
|
452
|
+
regex: /<(em|i)\b(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi,
|
|
453
453
|
replacement: '_$2_',
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
456
|
name: 'bold',
|
|
457
|
-
regex: /<(b|strong)(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi,
|
|
457
|
+
regex: /<(b|strong)\b(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi,
|
|
458
458
|
replacement: (extras, match, tagName, innerContent) => {
|
|
459
459
|
// To check if style attribute contains bold font-weight
|
|
460
460
|
const isBoldFromStyle = (style) => {
|