Skip to content

Commit df6e3eb

Browse files
committed
Merge branch 'taskname-validation' of https://github.com/calebcartwright/tfs-cli
2 parents 92f38d9 + 429d143 commit df6e3eb

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)