Skip to content

Commit

Permalink
fix: extract tasks
Browse files Browse the repository at this point in the history
support tasks in different status
  • Loading branch information
JuckZ committed Oct 24, 2023
1 parent 8d54b74 commit bf86b9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stores/pomodoro.ts
Expand Up @@ -30,8 +30,7 @@ export const usePomodoroStore = defineStore('pomodoro', () => {
}

function quickAddPomodoro(task: string) {
task = task.replace('- [x] ', '');
task = task.replace('- [ ] ', '').trim();
task = task.replace(/- \[.\] /, '').trim();
if (!task) {
task = t.menu.defaultTask + Date.now();
}
Expand Down

0 comments on commit bf86b9e

Please sign in to comment.