expand regex to account for more attributes in en-media tag in ENEX import, fixes #3503

This commit is contained in:
zadam 2023-01-08 20:50:08 +01:00
parent 4ae1b6e07b
commit f738787202

View file

@ -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";