Skip to content

Commit

Permalink
适配辣鸡教务网 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ff98sha authored Dec 11, 2023
1 parent 0bbe16c commit 2c3ebe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/sync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const CollapseItems: CollapseProps["items"] = [

const parseCourses = (raw: string): SyncCourseItem[] => {
const courseNameReg =
/\n(\S+)[◇●○★▲☆]\s+周数:\S+\s+校区\S+\s+上课地点:\S+\s+教师:(\S+)\s+教学班:\((\S+)\)\-(\S+)-\S+\s+/g;
/\n(\S+)[◇●○★▲☆]\s+周数:\S+\s+校区:\S+\s+上课地点:\S+\s+教师 :(\S+)\s+教学班:\((\S+)\)\-(\S+)-\S+\s+/g;
const matches = raw.matchAll(courseNameReg);
const courses: SyncCourseItem[] = Array.from(matches, (item) => {
return {
Expand Down

0 comments on commit 2c3ebe8

Please sign in to comment.