Skip to content

Commit

Permalink
Merge pull request #267 from dabalroman/master
Browse files Browse the repository at this point in the history
Fix of automatic calendar note imports
  • Loading branch information
YukiGasai authored Sep 2, 2024
2 parents 05d086b + 0ea6ae4 commit 2ee88ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "google-calendar",
"name": "Google Calendar",
"version": "1.10.14",
"version": "1.10.15",
"minAppVersion": "0.12.0",
"description": "Interact with your Google Calendar from Inside Obsidian",
"author": "YukiGasai",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-calendar",
"version": "1.10.14",
"version": "1.10.15",
"description": "Interact with your Google Calendar from Inside Obsidian",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/helper/AutoEventNoteCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export const checkForEventNotes = async (plugin: GoogleCalendarPlugin): Promise<
const match = events[i].description?.match(regex) ?? [];
if (match.length == 3) {
//the trigger text was found and a new note will be created
await createNoteFromEvent(events[i], match[1], match[2], true)
//the fallback allows for formats :folder-marker-template:, :marker-template:, :folder-marker:, :marker:
await createNoteFromEvent(events[i], match[1] ?? plugin.settings.defaultFolder, match[2] ?? plugin.settings.defaultTemplate, true)
}
}
}
Expand Down

0 comments on commit 2ee88ec

Please sign in to comment.