Skip to content

Commit

Permalink
fix error with naming a tweet in the final modal
Browse files Browse the repository at this point in the history
  • Loading branch information
kbravh committed Nov 8, 2021
1 parent db91b49 commit 15399ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"1.0.6": "0.12.16"
"1.0.7": "0.12.16"
}

0 comments on commit 15399ef

Please sign in to comment.