@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.mjs
CHANGED
|
@@ -11991,7 +11991,8 @@ async function ensureExpositionForLesson(storage, projectId, lessonCode, options
|
|
|
11991
11991
|
for (const p of hwPatterns) {
|
|
11992
11992
|
const m = lpRaw.match(p);
|
|
11993
11993
|
if (m && m[1] && !hw) {
|
|
11994
|
-
|
|
11994
|
+
const firstSentence = m[1].split(/(?<=[.!?])\s/)[0] || m[1];
|
|
11995
|
+
hw = firstSentence.replace(/\*+/g, "").replace(/\s+/g, " ").trim().slice(0, 140);
|
|
11995
11996
|
break;
|
|
11996
11997
|
}
|
|
11997
11998
|
}
|