Skip to content

Commit

Permalink
fix: special course name parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
abc873693 committed Mar 16, 2024
1 parent 4be96d7 commit 954b3fb
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 954b3fb

Please sign in to comment.