diff --git a/manifest.json b/manifest.json index d862419..6033f14 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-tweet-to-markdown", "name": "Tweet to Markdown", - "version": "1.0.6", + "version": "1.0.7", "minAppVersion": "0.12.16", "description": "Save tweets as Markdown files, along with their images, polls, etc.", "author": "kbravh", diff --git a/package.json b/package.json index 6547f77..df8cf1c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-tweet-to-markdown", - "version": "1.0.6", + "version": "1.0.7", "description": "Save tweets as beautiful markdown files in Obsidian (https://obsidian.md)", "main": "main.js", "engines": { diff --git a/src/util.ts b/src/util.ts index a3abe6f..dcf1e3a 100644 --- a/src/util.ts +++ b/src/util.ts @@ -83,7 +83,7 @@ export const createPollTable = (polls: Poll[]): string[] => { */ export const createFilename = (tweet: Tweet, filename = ''): string => { filename = filename ? filename : '[[handle]] - [[id]]' - filename = filename.replace(/.*\.md$/, '') // remove md extension if provided + filename = filename.replace(/\.md$/, '') // remove md extension if provided filename = filename.replace('[[name]]', tweet.includes.users[0].name) filename = filename.replace('[[handle]]', tweet.includes.users[0].username) filename = filename.replace('[[id]]', tweet.data.id) diff --git a/versions.json b/versions.json index 9463e1b..635ab01 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "1.0.6": "0.12.16" + "1.0.7": "0.12.16" }