Skip to content

Commit 72d3b85

Browse files
committed
Allow section numbers that start with a letter.
E.g.: Section numbers like 'V01'
1 parent 45a3e57 commit 72d3b85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/WebworkBridge/Parser.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ sub sanitizeCourseName
114114
# E.g.: Term-Course1-Section1-Course2-Section2
115115
# Section can be composed of section numbers, e.g.: 100
116116
# Section can have multiple section numbers, e.g.: 100, 101a, 102b, etc.
117+
# Section can also start with a character, e.g.: V01
117118
#
118119
# There is one exception to - delimiting in that a course which spans
119120
# 2 terms will have the terms delimited by a - too, e.g.: 2012W1-2
@@ -161,7 +162,7 @@ sub _parseConnectCourse
161162
{
162163
$section = 'ALL';
163164
}
164-
elsif ($section !~ /^\d\d\d/)
165+
elsif ($section !~ /^\d\d\d/ and $section !~ /^[A-Z]\d\d/)
165166
{ # section isn't in the expected format, bail
166167
last;
167168
}

0 commit comments

Comments
 (0)