(v: string)
| 69 | const FRONTMATTER_RE = /^---\n([\s\S]*?)\n---\n?/ |
| 70 | |
| 71 | function unquote(v: string): string { |
| 72 | const trimmed = v.trim() |
| 73 | if (trimmed.length >= 2) { |
| 74 | const first = trimmed[0] |
| 75 | const last = trimmed[trimmed.length - 1] |
| 76 | if ((first === '"' || first === "'") && first === last) { |
| 77 | return trimmed.slice(1, -1) |
| 78 | } |
| 79 | } |
| 80 | return trimmed |
| 81 | } |
| 82 | |
| 83 | function normalizePriority(raw: string | undefined): TaskPriority | undefined { |
| 84 | if (!raw) return undefined |
no outgoing calls
no test coverage detected