expensify-common 2.0.138 → 2.0.139
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 +1 -1
- package/package.json +1 -1
package/dist/ExpensiMark.js
CHANGED
|
@@ -347,7 +347,7 @@ class ExpensiMark {
|
|
|
347
347
|
*/
|
|
348
348
|
{
|
|
349
349
|
name: 'italic',
|
|
350
|
-
regex: /(<(pre|code|a|mention-user|video)[^>]*>(.*?)<\/\2>)|((\b_+|\b)_((?![\s_])[\s\S]*?[^\s_](?<!\s))_(?![^\W_])(?![^<]*>)(?![^<]*(<\/pre>|<\/code>|<\/a>|<\/mention-user>|<\/video>)))/g,
|
|
350
|
+
regex: /(<(pre|code|a|mention-user|video)[^>]*>(.*?)<\/\2>)|((\b_+|\b|(?<=_)(?<!\b[^\W_]*_))_((?![\s_])[\s\S]*?[^\s_](?<!\s))_(?![^\W_])(?![^<]*>)(?![^<]*(<\/pre>|<\/code>|<\/a>|<\/mention-user>|<\/video>)))/g,
|
|
351
351
|
replacement: (_extras, match, html, tag, content, text, extraLeadingUnderscores, textWithinUnderscores) => {
|
|
352
352
|
// Skip any <pre>, <code>, <a>, <mention-user>, <video> tag contents
|
|
353
353
|
if (html) {
|