From 608a9420a6ef65d22592f2a09f31e8fb1e6b5e38 Mon Sep 17 00:00:00 2001 From: 3eef8a28f26fb2bcc514e6f1938929a1f931762 <116031952+3eef8a28f26fb2bcc514e6f1938929a1f931762@users.noreply.github.com> Date: Sat, 11 Feb 2023 14:18:01 -0500 Subject: [PATCH] Typo --- js/search_helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/search_helper.js b/js/search_helper.js index 422265c37..ce280631e 100644 --- a/js/search_helper.js +++ b/js/search_helper.js @@ -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) {