---------- task tag queries ---------- NormalizeTag canonicalizes a tag for storage and comparison: trim whitespace, lowercase. Returns "" for input that contains nothing after trimming — callers should treat "" as invalid.
(s string)
| 956 | // whitespace, lowercase. Returns "" for input that contains nothing |
| 957 | // after trimming — callers should treat "" as invalid. |
| 958 | func NormalizeTag(s string) string { |
| 959 | return strings.ToLower(strings.TrimSpace(s)) |
| 960 | } |
| 961 | |
| 962 | // AddTaskTag attaches a tag to a task. Idempotent: re-adding an existing |
| 963 | // (task_slug, tag) pair is a no-op via INSERT OR IGNORE. |
no outgoing calls
no test coverage detected