Skip to content

Commit

Permalink
fix(script): 修复超星章节测试出现年份丢失的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
ennnncy committed Apr 10, 2023
1 parent 2bc1ce1 commit 941c0e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/scripts/src/projects/cx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1273,9 +1273,7 @@ async function chapterTestTask(
/** 超星旧版作业题目冗余数据 */
.replace(/\(..题, .+?分\)/, '')
.replace(/[[(【(](.+题|名词解释|完形填空|阅读理解)[\])】)]/, '')
.replace(/^\d+\./, '')
.replace(/^\d+。/, '')
.replace(/^\d+、/, '')
.replace(/^\d+[。、.]/, '')
.trim()
);
};
Expand Down

0 comments on commit 941c0e9

Please sign in to comment.