@thanh01.pmt/curriculum-kit 1.4.25 → 1.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12003,7 +12003,8 @@ async function ensureExpositionForLesson(storage, projectId, lessonCode, options
|
|
|
12003
12003
|
for (const p of hwPatterns) {
|
|
12004
12004
|
const m = lpRaw.match(p);
|
|
12005
12005
|
if (m && m[1] && !hw) {
|
|
12006
|
-
|
|
12006
|
+
const firstSentence = m[1].split(/(?<=[.!?])\s/)[0] || m[1];
|
|
12007
|
+
hw = firstSentence.replace(/\*+/g, "").replace(/\s+/g, " ").trim().slice(0, 140);
|
|
12007
12008
|
break;
|
|
12008
12009
|
}
|
|
12009
12010
|
}
|