mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
Merge pull request #1805 from frankkanis/move-image-note-fix
Fixed moving notes with images
This commit is contained in:
@@ -68,6 +68,8 @@ function moveNote (storageKey, noteKey, newStorageKey, newFolderKey) {
|
|||||||
return noteData
|
return noteData
|
||||||
})
|
})
|
||||||
.then(function moveImages (noteData) {
|
.then(function moveImages (noteData) {
|
||||||
|
if (oldStorage.path === newStorage.path) return noteData
|
||||||
|
|
||||||
const searchImagesRegex = /!\[.*?]\(\s*?\/:storage\/(.*\.\S*?)\)/gi
|
const searchImagesRegex = /!\[.*?]\(\s*?\/:storage\/(.*\.\S*?)\)/gi
|
||||||
let match = searchImagesRegex.exec(noteData.content)
|
let match = searchImagesRegex.exec(noteData.content)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user