Skip to content

Commit

Permalink
Small update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holmes555 committed Jun 23, 2023
1 parent 8c07d6d commit 2930e70
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -13,7 +13,7 @@ This plugin allow you to import all the resources from you Workona generated JSO
---
date created: {{date}}
date modified: {{date}}
tags: #Workona #{{workspaceSectionTitleTag}} #{{workspaceSubSectionTitleTag}} #{{resourceSectionTitleTag}}
tags: Workona, {{workspaceSectionTitleTag}}, {{workspaceSubSectionTitleTag}}, {{resourceSectionTitleTag}}
---
# {{title}}
Expand All @@ -40,7 +40,8 @@ If you are specifying your own template, you could choose from these variables:

## Changelog

**[0.1.3]** - Added ability to use custom template .md file for importing with your formatting.
**[0.1.3]** - Added ability to use custom template .md file for importing with your formatting.
**[0.1.4]** - Format default template, to make proper tags. Replace "|" in the file name.

## Note

Expand Down
4 changes: 2 additions & 2 deletions main.ts
Expand Up @@ -53,7 +53,7 @@ export default class WorkonaToObsidian extends Plugin {
}

validFilename(name:string) {
const regexp = /[`~!@#$%^&*\=?;:'"<>\{\}\[\]\\\/]/gi;
const regexp = /[`~|!@#$%^&*\=?;:'"<>\{\}\[\]\\\/]/gi;
return name.replace(regexp,'_');
}

Expand All @@ -75,7 +75,7 @@ export default class WorkonaToObsidian extends Plugin {
return `---
date created: {{date}}
date modified: {{date}}
tags: #Workona #{{workspaceSectionTitleTag}} #{{workspaceSubSectionTitleTag}} #{{resourceSectionTitleTag}}
tags: Workona, {{workspaceSectionTitleTag}}, {{workspaceSubSectionTitleTag}}, {{resourceSectionTitleTag}}
---
# {{title}}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,7 +1,7 @@
{
"id": "workona-to-obsidian",
"name": "Workona To Obsidian",
"version": "0.1.3",
"version": "0.1.4",
"minAppVersion": "0.15.0",
"description": "Import Workona resources through generated JSON file.",
"author": "Holmes555",
Expand Down
9 changes: 5 additions & 4 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
@@ -1,6 +1,6 @@
{
"name": "workona-to-obsidian-plugin",
"version": "0.1.3",
"version": "0.1.4",
"description": "Import Workona resources through generated JSON file. (https://github.com/Holmes555/workona-to-obsidian)",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion versions.json
@@ -1,3 +1,3 @@
{
"0.1.3": "0.15.0"
"0.1.4": "0.15.0"
}

0 comments on commit 2930e70

Please sign in to comment.