diff --git a/static/js/html2notecase.js b/static/js/html2notecase.js index 3c161fce2..e8e4c230e 100644 --- a/static/js/html2notecase.js +++ b/static/js/html2notecase.js @@ -81,9 +81,11 @@ function html2notecase(contents, note) { } } - const linkMatch = /^]+?href="([^"]+?)"[^>]+?>([^<]+?)<\/a>/.exec(curContent); + const linkMatch = /^]+?href="([^"]+?)"[^>]*?>([^<]+?)<\/a>/.exec(curContent); if (linkMatch !== null) { + console.log("matched link: ", linkMatch); + const targetUrl = linkMatch[1]; const linkText = linkMatch[2];