mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
expand regex to account for more attributes in en-media tag in ENEX import, fixes #3503
This commit is contained in:
parent
4ae1b6e07b
commit
f738787202
@ -269,7 +269,7 @@ function importEnex(taskContext, file, parentNote) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const mediaRegex = new RegExp(`<en-media hash="${hash}"[^>]*>`, 'g');
|
const mediaRegex = new RegExp(`<en-media [^>]*hash="${hash}"[^>]*>`, 'g');
|
||||||
|
|
||||||
resource.mime = resource.mime || "application/octet-stream";
|
resource.mime = resource.mime || "application/octet-stream";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user