From f7b1e306f3d2879914c470c8b268cc5278973186 Mon Sep 17 00:00:00 2001 From: pyrochlore Date: Fri, 24 Sep 2021 18:49:17 +0800 Subject: [PATCH 1/3] Fix startDate/endDate being treated as relative dates --- src/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper.ts b/src/helper.ts index 7523e62..22aef7d 100644 --- a/src/helper.ts +++ b/src/helper.ts @@ -105,7 +105,7 @@ function extractValueFromDurationString( } let value = null; - const strRegex = "(?[0-9]+)(" + units.join("|") + ")"; + const strRegex = "^(?[0-9]+)(" + units.join("|") + ")$"; // console.log(strRegex); const regex = new RegExp(strRegex, "gm"); let match = regex.exec(strDuration); From 3a6ad3bd4091e6fecdad834035c70dd2c71be8fe Mon Sep 17 00:00:00 2001 From: pyrochlore Date: Fri, 24 Sep 2021 18:50:21 +0800 Subject: [PATCH 2/3] Set version to 1.10.8 --- manifest.json | 2 +- package.json | 2 +- versions.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index c298533..9c2dd6c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-tracker", "name": "Tracker", - "version": "1.10.7", + "version": "1.10.8", "minAppVersion": "0.9.12", "description": "A plugin tracks occurrences and numbers in your notes", "author": "pyrochlore", diff --git a/package.json b/package.json index 42574b5..9a9ff4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-tracker", - "version": "1.10.7", + "version": "1.10.8", "description": "A plugin tracks occurrences and numbers in your notes", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index c0ea03d..30226ea 100644 --- a/versions.json +++ b/versions.json @@ -26,5 +26,6 @@ "1.10.4": "0.9.12", "1.10.5": "0.9.12", "1.10.6": "0.9.12", - "1.10.7": "0.9.12" + "1.10.7": "0.9.12", + "1.10.8": "0.9.12" } From c5e354dc07af46fb08cc04e44a44073d8ea89182 Mon Sep 17 00:00:00 2001 From: pyrochlore Date: Fri, 24 Sep 2021 19:09:47 +0800 Subject: [PATCH 3/3] Update documents --- README.md | 3 +++ docs/ReleaseNotes.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 568fdbe..14a17d5 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,9 @@ Version 1.10.6 Version 1.10.7 - Allow using html image tags as emoji inputs +Version 1.10.8 +- Fixed startDat/endDate misread as a relative date + ## !!! Breaking Changes !!! From version 1.9.0, template variables, e.g. '{{sum}}', are deprecated. Instead, Tracker provide operators (+, -, *, /, %) and functions (dataset(), sum(), maxStreak(), ......etc) to help us do data processing. For users having code blocks from previous version, please replace '{{sum}}' by '{{sum()}}' or '{{sum(1)}}' by '{{sum(dataset(1))}}'. More information about the new expressions could be found [here](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/Expressions.md). diff --git a/docs/ReleaseNotes.md b/docs/ReleaseNotes.md index 7b80e68..560977f 100644 --- a/docs/ReleaseNotes.md +++ b/docs/ReleaseNotes.md @@ -1,5 +1,8 @@ # Release Notes +## v1.10.8 +- Fixed startDat/endDate misread as a relative date + ## v1.10.7 - Allow using html image tags as emoji inputs