Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

431 B
Raw Blame
// A task's short id is its project key plus the task number, e.g. "DEP-23".
// Project keys come from `generateProjectSlug`, which follows the same Unicode
// rules as `toSlug`, so a key can be "ПА", "测试项", or "123" and not only A-Z. Matching
// on ASCII alone left those projects without the "type the task key to jump to
// it" path.
export const TASK_SHORT_ID_PATTERN =
  /^([\p{L}\p{N}][\p{L}\p{N}\p{M}_-]*)-(\d+)$/u;