Skip to content

Commit

Permalink
fix bug with moment.js in note path
Browse files Browse the repository at this point in the history
  • Loading branch information
dartungar committed Mar 31, 2024
1 parent bd5f8ef commit 43e49e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "mood-tracker",
"name": "Mood Tracker",
"version": "1.3.2.2",
"version": "1.3.3",
"minAppVersion": "1.0.0",
"description": "Track your moods & emotions easily. Visualize tracked history and browse the past entries.",
"author": "dartungar",
Expand Down
2 changes: 1 addition & 1 deletion src/filesIntegration/fileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class FileService {
const regex = /{{DATE:(.*?)}}/g;
return templatedPath.replace(regex, (match, dateFormat) => {
dateFormat ??= "yyyy-MM-dd";
return window.moment(date).format(dateFormat.toUpperCase());
return window.moment(date).format(dateFormat);
});
}

Expand Down

0 comments on commit 43e49e4

Please sign in to comment.