(titles: (HTMLElement | undefined)[])
| 1844 | CORSUtils.pinWorkPanel(); |
| 1845 | |
| 1846 | const chapterTestTaskQuestionTitleTransform = (titles: (HTMLElement | undefined)[]) => { |
| 1847 | const removed = removeRedundantWords( |
| 1848 | titles.map((t) => (t ? optimizationElementWithImage(t, true).innerText : '')).join(','), |
| 1849 | redundanceWordsText.split('\n') |
| 1850 | ); |
| 1851 | |
| 1852 | return ( |
| 1853 | removed |
| 1854 | .trim() |
| 1855 | /** 超星旧版作业题目冗余数据 */ |
| 1856 | .replace(/^\d+[。、.]/, '') |
| 1857 | .replace(/(\d+\.\d+分)/, '') |
| 1858 | .replace(/\(..题, \d+?分\)/, '') |
| 1859 | .replace(/\(..题, \d+\.\d+分\)/, '') |
| 1860 | .replace(/[[(【(](..题|名词解释|完形填空|阅读理解)[\])】)]/, '') |
| 1861 | .trim() |
| 1862 | ); |
| 1863 | }; |
| 1864 | |
| 1865 | /** 新建答题器 */ |
| 1866 | const worker = new OCSWorker({ |
no test coverage detected