mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix
This commit is contained in:
parent
9fcafe44d5
commit
b4e6245f7b
@ -66,7 +66,7 @@ const noteEditor = (function() {
|
||||
note.detail.note_text = contents;
|
||||
|
||||
if (!note.detail.is_protected) {
|
||||
const linkRegexp = /<a[^>]+?href="[^"]*app#([A-Za-z0-9]{22})"[^>]*?>[^<]+?<\/a>/g;
|
||||
const linkRegexp = /<a[^>]+?href="[^"]*app#([A-Za-z0-9/]+)"[^>]*?>[^<]+?<\/a>/g;
|
||||
let match;
|
||||
|
||||
while (match = linkRegexp.exec(contents)) {
|
||||
|
@ -180,6 +180,11 @@ const noteTree = (function() {
|
||||
if (childNoteId !== null) {
|
||||
const parents = childToParents[childNoteId];
|
||||
|
||||
if (!parents) {
|
||||
console.error("No parents found for " + childNoteId);
|
||||
return;
|
||||
}
|
||||
|
||||
if (parentNoteId === null || !parents.includes(parentNoteId)) {
|
||||
console.log("Did not find parent " + parentNoteId + " for child " + childNoteId);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user