From cca426485146710417dcc761077935abd7d87a88 Mon Sep 17 00:00:00 2001 From: Mara Date: Sat, 14 May 2022 16:24:31 +0200 Subject: [PATCH] refactor: remove json log --- mkdocsPublisher/utils/publication.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mkdocsPublisher/utils/publication.ts b/mkdocsPublisher/utils/publication.ts index d3afa619..6bbd7e4f 100644 --- a/mkdocsPublisher/utils/publication.ts +++ b/mkdocsPublisher/utils/publication.ts @@ -41,8 +41,7 @@ export default class MkdocsPublish { try { const imageLink = this.metadataCache.getFirstLinkpathDest(embed_file.link, file.path) const imgExt = imageLink.extension - const regImg = /(png|jpe?g|svg|bmp|gif)$/i - if (imgExt.match(regImg)) { + if (imgExt.match(/(png|jpe?g|svg|bmp|gif)$/i)) { image_list.push(imageLink) } } catch (e) { @@ -96,7 +95,6 @@ export default class MkdocsPublish { if (folder.length > 0) { const publishedFiles = folder.map(file => file.name) const publishedFilesText = JSON.stringify(publishedFiles).toString() - console.log(publishedFilesText) await this.uploadText('vault_published.json', publishedFilesText, 'vault_published.json') } }