Skip to content

Commit

Permalink
fix: allow characters in student ID when matching for studentSemester… (
Browse files Browse the repository at this point in the history
#215)

fix: allow characters in student ID when matching for studentSemester Details

Co-authored-by: umeow0716 <[email protected]>
  • Loading branch information
rileychh and umeow0716 authored Jan 24, 2024
1 parent 1ee8c73 commit 3523326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/connector/course_connector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class CourseConnector {
// e.g. "學號:110310144  姓名:xxx  班級:電機三甲    112 學年度 第 1 學期 上課時間表"
// so the RegExp is used to filter out only the number parts
final titleString = nodes[0].text;
final RegExp studentSemesterDetailFilter = RegExp(r'\b\d+\b');
final RegExp studentSemesterDetailFilter = RegExp(r'\b[\dA-Z]+\b');
final Iterable<RegExpMatch> studentSemesterDetailMatches = studentSemesterDetailFilter.allMatches(titleString);
// "studentSemesterDetails" should consist of three numerical values
// ex: [110310144, 112, 1]
Expand Down

0 comments on commit 3523326

Please sign in to comment.