Skip to content

Commit

Permalink
fix: clean content id property when task has ref id
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonn committed May 6, 2022
1 parent 1eefd41 commit 61b3afd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/TaskEntity.ts
Expand Up @@ -57,6 +57,7 @@ class TaskEntity {
content = content.replace(/SCHEDULED: <[^>]+>/, '');
content = content.replace(/DEADLINE: <[^>]+>/, '');
content = content.replace(/(:LOGBOOK:)|(\*\s.*)|(:END:)|(CLOCK:.*)/gm, '');
content = content.replace(/id::[^:]+/, '');
return content.trim();
}

Expand Down

0 comments on commit 61b3afd

Please sign in to comment.