We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f44dd2b commit bf889c2Copy full SHA for bf889c2
1 file changed
api/generate.php
@@ -67,7 +67,7 @@ function ajaxErrorHandler($errno, $errstr, $errfile, $errline) {
67
}
68
69
$course = strtoupper($course);
70
- preg_match('/([A-Z]{4})[-\s]*(\d{0,3}[A-Z]?)?(?:[-\s]+(\d{0,2}[A-Z]?\d?))?/', $course, $courseParts);
+ preg_match('/([A-Z0-9]{4})[-\s]*(\d{0,3}[A-Z]?)?(?:[-\s]+(\d{0,2}[A-Z]?\d?))?/', $course, $courseParts);
71
72
// Query base: Noncancelled courses from the requested term
73
$query = "SELECT s.id
0 commit comments