diff --git a/lib/WeBWorK/ContentGenerator/CourseAdmin.pm b/lib/WeBWorK/ContentGenerator/CourseAdmin.pm index 7c8301c050..c87566a8f5 100644 --- a/lib/WeBWorK/ContentGenerator/CourseAdmin.pm +++ b/lib/WeBWorK/ContentGenerator/CourseAdmin.pm @@ -270,7 +270,7 @@ sub add_course_validate ($c) { for (1 .. $number_of_additional_users) { my $userID = trim_spaces($c->param("add_initial_userID_$_")) || ''; - unless ($userID =~ /^[\w-.,]*$/) { + unless ($userID =~ /^[\w.,-]*$/) { push @errors, $c->maketext( 'User ID number [_1] may only contain letters, numbers, hyphens, periods, commas, '