Skip to content

Commit

Permalink
Merge branch 'fix_1.10.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrochlore committed Sep 25, 2021
2 parents cb57558 + c5e354d commit 42af0fe
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
3 changes: 3 additions & 0 deletions docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function extractValueFromDurationString(
}

let value = null;
const strRegex = "(?<value>[0-9]+)(" + units.join("|") + ")";
const strRegex = "^(?<value>[0-9]+)(" + units.join("|") + ")$";
// console.log(strRegex);
const regex = new RegExp(strRegex, "gm");
let match = regex.exec(strDuration);
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 42af0fe

Please sign in to comment.