This commit is contained in:
3eef8a28f26fb2bcc514e6f1938929a1f931762 2023-02-11 14:18:01 -05:00 committed by powe97
parent 87467776e9
commit 608a9420a6
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ const search_helper = function(event) {
course_code = input.match(/.{1,4}/g)
} else if(input.length == 9) {
// "abcd - 1345" => ["abcd","1345"]
course_code = input.split(/(?:,| )+/);
course_code = input.split(/(?:-| )+/);
}
// only do this logic if the string might be a course code
if(course_code) {