mirror of
https://github.com/zadam/trilium.git
synced 2025-02-25 07:25:32 +08: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
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ function importEnex(taskContext, file, parentNote) {
|
|||
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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue