Skip to content

Commit

Permalink
Merge pull request #246 from NKUST-ITC/fix/course-parser
Browse files Browse the repository at this point in the history
fix: special course name parse error
  • Loading branch information
abc873693 authored Mar 16, 2024
2 parents 4be96d7 + 954b3fb commit 1dafe22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/api/parser/ap_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ class WebApParser {
if (splitData.length <= 1) {
continue;
}
String courseName = splitData[0].replaceAll('\n', '');
String courseName =
splitData[0].replaceAll('\n', '').replaceAll('(18週)', '');
if (courseName.lastIndexOf('>') > -1) {
courseName = courseName
.substring(courseName.lastIndexOf('>') + 1, courseName.length)
Expand Down

0 comments on commit 1dafe22

Please sign in to comment.