From 954b3fb2a38aef0c33eda1f07c4280230a74f20e Mon Sep 17 00:00:00 2001 From: Rainvisitor Date: Sat, 16 Mar 2024 17:49:50 +0800 Subject: [PATCH] fix: special course name parse error --- lib/api/parser/ap_parser.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api/parser/ap_parser.dart b/lib/api/parser/ap_parser.dart index d6187149..e96cd68e 100644 --- a/lib/api/parser/ap_parser.dart +++ b/lib/api/parser/ap_parser.dart @@ -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)