From 475ff5d5d5a9883d8b35234c6b47f7dffbb6c9d7 Mon Sep 17 00:00:00 2001 From: JeffDotPng Date: Fri, 4 Aug 2023 22:20:05 -0400 Subject: [PATCH] fix small issue with MATH 222 --- client/src/components/CourseRequirements.tsx | 2 +- seed/courses-2023-2024.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/CourseRequirements.tsx b/client/src/components/CourseRequirements.tsx index d7a43982..a61af54e 100644 --- a/client/src/components/CourseRequirements.tsx +++ b/client/src/components/CourseRequirements.tsx @@ -8,7 +8,7 @@ type ReqsBlockProps = { }; const transform = (html: string): React.ReactNode[] => { - const split = html.split(':'); + const split = html.split(':', 1); const doc = new DOMParser().parseFromString( capitalize(punctuate(split.length <= 1 ? html.trim() : split[1].trim())), diff --git a/seed/courses-2023-2024.json b/seed/courses-2023-2024.json index 94d6c9b0..9bf3168c 100644 --- a/seed/courses-2023-2024.json +++ b/seed/courses-2023-2024.json @@ -353216,8 +353216,8 @@ ], "prerequisitesText": "Prerequisite: MATH 141. Familiarity with vector geometry or Corequisite: MATH 133", "corequisitesText": null, - "prerequisites": ["MATH141", "MATH133"], - "corequisites": [], + "prerequisites": ["MATH141"], + "corequisites": ["MATH133"], "leadingTo": [ "ATOC315", "ATOC404",