mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Update notes.js
This commit is contained in:
parent
e2cb3c0d14
commit
46909b76b6
@ -511,7 +511,7 @@ const downloadImagePromises = {};
|
||||
function replaceUrl(content, url, attachment) {
|
||||
const quotedUrl = utils.quoteRegex(url);
|
||||
|
||||
return content.replace(new RegExp(`\\s+src=[\"']${quotedUrl}[\"']`, "ig"), ` src="api/attachments/${attachment.attachmentId}/image/${encodeURIComponent(attachment.title)}"`);
|
||||
return content.replace(new RegExp(`\\s+src=[\"']${url}[\"']`, "ig"), ` src="api/attachments/${attachment.attachmentId}/image/${encodeURIComponent(attachment.title)}"`);
|
||||
}
|
||||
|
||||
function downloadImages(noteId, content) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user