Skip to content

Commit

Permalink
Add archivedAt to list of meta dates
Browse files Browse the repository at this point in the history
  • Loading branch information
piascikj committed Oct 13, 2024
1 parent 436b317 commit 50c4b8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const {
* @param {} obj
* @return
*/
const DATE_META_KEYS = ['due', 'defer', 'created', 'remind', 'completed']
class Task {
constructor(config, obj, dontParse) {
if (!_isObject(obj)) throw new Error('obj must be an Object')
Expand Down Expand Up @@ -202,6 +201,7 @@ class Task {
})
}
}
const DATE_META_KEYS = Task.DATE_META_KEYS = ['due', 'defer', 'created', 'remind', 'completed', 'archivedAt']

Task.hasCheckPrefix = function (content) {
return new RegExp(CHECK_REGEX).test(content)
Expand Down
4 changes: 2 additions & 2 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imdone-core",
"version": "1.46.1",
"version": "1.46.2",
"description": "imdone-core",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 50c4b8f

Please sign in to comment.