Skip to content

Commit 4efaa84

Browse files
committed
fix(#1): typo in function name
1 parent 1eeed0e commit 4efaa84

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import joplin from "api";
22
import { SettingItemType } from "api/types";
3-
import { parseTempalte } from "./parser";
3+
import { parseTemplate } from "./parser";
44
import { doesFolderExist } from "./utils/folders";
55
import { getUserTempateSelection } from "./utils/templates";
66

@@ -30,7 +30,7 @@ joplin.plugins.register({
3030
execute: async () => {
3131
const template = await getUserTempateSelection(templatesFolderId);
3232
if (template) {
33-
await joplin.commands.execute("newNote", await parseTempalte(template));
33+
await joplin.commands.execute("newNote", await parseTemplate(template));
3434
}
3535
}
3636
});
@@ -41,7 +41,7 @@ joplin.plugins.register({
4141
execute: async () => {
4242
const template = await getUserTempateSelection(templatesFolderId);
4343
if (template) {
44-
await joplin.commands.execute("newTodo", await parseTempalte(template));
44+
await joplin.commands.execute("newTodo", await parseTemplate(template));
4545
}
4646
}
4747
});
@@ -52,7 +52,7 @@ joplin.plugins.register({
5252
execute: async () => {
5353
const template = await getUserTempateSelection(templatesFolderId);
5454
if (template) {
55-
await joplin.commands.execute("insertText", await parseTempalte(template));
55+
await joplin.commands.execute("insertText", await parseTemplate(template));
5656
}
5757
}
5858
});

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export const parseTempalte = async (template: string): Promise<string> => {
1+
export const parseTemplate = async (template: string): Promise<string> => {
22
return template;
33
}

0 commit comments

Comments
 (0)