Skip to content

Commit

Permalink
refactor: remove json log
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed May 14, 2022
1 parent b9243a0 commit cca4264
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mkdocsPublisher/utils/publication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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')
}
}
Expand Down

0 comments on commit cca4264

Please sign in to comment.