@ecency/render-helper 2.5.17 → 2.5.18

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.
@@ -2088,10 +2088,10 @@ var BACKTICK_FENCE_RE = /```[\s\S]*?```/g;
2088
2088
  var TILDE_FENCE_RE = /~~~[\s\S]*?~~~/g;
2089
2089
  var INLINE_CODE_RE = /`[^`\n]*`/g;
2090
2090
  var INDENTED_CODE_RE = /^(?: {4}|\t).+$/gm;
2091
- var MD_IMAGE_RE = /!\[[^\]]*\]\(\s*([^)\s]+)(?:\s+["'][^"']*["'])?\s*\)/;
2091
+ var MD_IMAGE_RE = /!\[[^[\]]*\]\(\s*([^)\s[]+)(?:\s+["'][^"']*["'])?\s*\)/;
2092
2092
  var HTML_IMAGE_RE = /<img\b[^>]*?\bsrc\s*=\s*["']([^"']+)["']/i;
2093
2093
  var BARE_IMAGE_RE = /(^|\s)(https?:\/\/[^\s<>"'()[\]]+\.(?:tiff?|jpe?g|gif|png|svg|ico|heic|webp|arw)(?:[?#][^\s<>"'()[\]]*)?)/im;
2094
- var MD_LINK_RE = /\[([^\]]*)\]\(\s*([^)\s]+)(?:\s+["'][^"']*["'])?\s*\)/g;
2094
+ var MD_LINK_RE = /\[([^[\]]*)\]\(\s*([^)\s[]+)(?:\s+["'][^"']*["'])?\s*\)/g;
2095
2095
  var IMG_HREF_RE = /https?:\/\/.*\.(?:tiff?|jpe?g|gif|png|svg|ico|heic|webp|arw)/i;
2096
2096
  var SAFE_URL_RE = /^https?:\/\//i;
2097
2097
  function findFirstImageUrl(body, includeBareUrls = false) {