1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

regex fixed again

This commit is contained in:
anasasilva
2018-12-16 15:53:41 +00:00
committed by Junyoung Choi
parent 9d47f319a0
commit 3d6f670e8d
2 changed files with 3 additions and 1 deletions

View File

@@ -458,7 +458,7 @@ function getAbsolutePathsOfAttachmentsInContent (markdownContent, storagePath) {
*/
function importAttachments (markDownContent, filepath, storageKey, noteKey) {
return new Promise((resolve, reject) => {
const nameRegex = /(!\[.+?]\()(.+?\..+?)(\))/g
const nameRegex = /(!\[.*?]\()(.+?\..+?)(\))/g
let attachName = nameRegex.exec(markDownContent)
const promiseArray = []
const attachPath = []