Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix parsing links without any attributes after href
azivnerf063d12d0729
diff --git a/static/js/html2notecase.js b/static/js/html2notecase.jsindex 3c161fce28..e8e4c230ef 100644--- a/static/js/html2notecase.js+++ b/static/js/html2notecase.js@@ -81,9 +81,11 @@ function html2notecase(contents, note) {}}- const linkMatch = /^<a[^>]+?href="([^"]+?)"[^>]+?>([^<]+?)<\/a>/.exec(curContent);+ const linkMatch = /^<a[^>]+?href="([^"]+?)"[^>]*?>([^<]+?)<\/a>/.exec(curContent);if (linkMatch !== null) {+ console.log("matched link: ", linkMatch);+const targetUrl = linkMatch[1];const linkText = linkMatch[2];