mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:01:08 +02:00
fix(todo): allow priority keywords without ! prefix
Now supports both: - "heimfahren wichtig" → priority high - "heimfahren !wichtig" → priority high Keywords: später, normal, wichtig, dringend (case-insensitive) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
09e44a2f2f
commit
993b8c129a
1 changed files with 5 additions and 5 deletions
|
|
@ -42,12 +42,12 @@ export interface ParsedTaskWithIds {
|
|||
}
|
||||
|
||||
// Priority patterns (task-specific)
|
||||
// Supports: !später, !normal, !wichtig, !dringend and shortcuts !, !!, !!!
|
||||
// Supports: später, normal, wichtig, dringend (with or without !) and shortcuts !, !!, !!!
|
||||
const PRIORITY_PATTERNS: { pattern: RegExp; priority: TaskPriority }[] = [
|
||||
{ pattern: /!{3,}|!dringend/i, priority: 'urgent' },
|
||||
{ pattern: /!{2}|!wichtig/i, priority: 'high' },
|
||||
{ pattern: /!normal/i, priority: 'medium' },
|
||||
{ pattern: /!später|!sp[aä]ter/i, priority: 'low' },
|
||||
{ pattern: /!{3,}|!?dringend\b/i, priority: 'urgent' },
|
||||
{ pattern: /!{2}|!?wichtig\b/i, priority: 'high' },
|
||||
{ pattern: /!?normal\b/i, priority: 'medium' },
|
||||
{ pattern: /!?sp[aä]ter\b/i, priority: 'low' },
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue