Skip to content

Commit

Permalink
Fix capture prepend bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Jun 13, 2021
1 parent 627ad68 commit dda48a1
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": "quickadd",
"name": "QuickAdd",
"version": "0.1.4",
"version": "0.1.5",
"minAppVersion": "0.12.00",
"description": "Quickly add new pages or content to your vault.",
"author": "Christian B. B. Houmann",
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": "quickadd",
"version": "0.1.4",
"version": "0.1.5",
"description": "Quickly add new pages or content to your vault.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/captureChoiceFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class CaptureChoiceFormatter extends CompleteFormatter {
const formatted = await super.formatFileContent(input);

if (this.choice.prepend)
return `${this.fileContent}\n${input}`
return `${this.fileContent}\n${formatted}`

if (this.choice.insertAfter.enabled) {
const targetRegex = new RegExp(`\s*${this.choice.insertAfter.after}\s*`)
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"0.1.4": "0.12.4"
"0.1.5": "0.12.4"
}

0 comments on commit dda48a1

Please sign in to comment.