Skip to content

Commit

Permalink
Fix bug where you would get an error if you didn't have dataview inst…
Browse files Browse the repository at this point in the history
…alled
  • Loading branch information
Ole Eskild Steensen committed Mar 21, 2023
1 parent 92c5f91 commit cac828a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "digitalgarden",
"name": "Digital Garden",
"version": "2.42.0",
"version": "2.42.1",
"minAppVersion": "0.12.0",
"description": "Publish your notes to the web for others to enjoy. For free.",
"author": "Ole Eskild Steensen",
Expand Down
1 change: 1 addition & 0 deletions src/Publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ export default class Publisher {
let replacedText = text;
const dataViewRegex = /```dataview\s(.+?)```/gsm;
const dvApi = getAPI();
if(!dvApi) return replacedText;
const matches = text.matchAll(dataViewRegex);

const dataviewJsPrefix = dvApi.settings.dataviewJsKeyword;
Expand Down
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"2.42.1": "0.12.0",
"2.42.0": "0.12.0",
"2.41.1": "0.12.0",
"2.41.0": "0.12.0",
Expand Down

0 comments on commit cac828a

Please sign in to comment.