fix(agent-teams): enforce T-prefixed task id validation
This commit is contained in:
committed by
YeonGyu-Kim
parent
2103061123
commit
11766b085d
@@ -1,6 +1,6 @@
|
||||
const VALID_NAME_RE = /^[A-Za-z0-9_-]+$/
|
||||
const MAX_NAME_LENGTH = 64
|
||||
const VALID_TASK_ID_RE = /^[A-Za-z0-9_-]+$/
|
||||
const VALID_TASK_ID_RE = /^T-[A-Za-z0-9_-]+$/
|
||||
const MAX_TASK_ID_LENGTH = 128
|
||||
|
||||
function validateName(value: string, label: "team" | "agent"): string | null {
|
||||
|
||||
Reference in New Issue
Block a user