Skip to content

Commit 429d143

Browse files
fix: update task name validation to use same regex as task manifest schema
1 parent 457a7a3 commit 429d143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/jsonvalidate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function validateTask(taskPath: string, taskData: any): string[] {
6565
issues.push(vn + ": id is a required guid");
6666
}
6767

68-
if (!taskData.name || !check.isAlphanumeric(taskData.name)) {
68+
if (!taskData.name || !check.matches(taskData.name, /^[A-Za-z0-9\-]+$/)) {
6969
issues.push(vn + ": name is a required alphanumeric string");
7070
}
7171

0 commit comments

Comments
 (0)