MCPcopy
hub / github.com/ocsjs/ocsjs / titleTransform

Function titleTransform

packages/scripts/src/projects/unipus/exploration.ts:1065–1068  ·  view source on GitHub ↗
(titles: (HTMLElement | undefined)[])

Source from the content-addressed store, hash-verified

1063 CommonProject.scripts.render.methods.pin(CommonProject.scripts.workResults);
1064
1065 const titleTransform = (titles: (HTMLElement | undefined)[]) => {
1066 const res = titles.map((t) => (t ? t.innerText : '')).join('\n\n');
1067 return config.questionTitleTransform ? config.questionTitleTransform(res) : res;
1068 };
1069
1070 /** 新建答题器 */
1071 const worker = new OCSWorker({

Callers 2

handleCommonUnitTestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected