@duanz/pi-d-live 1.1.6 → 1.1.7
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/index.ts +2 -0
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -762,6 +762,8 @@ function rewrite(s: Sess, sid: string, text: string) {
|
|
|
762
762
|
.split("\n")
|
|
763
763
|
.map((line: string) =>
|
|
764
764
|
line
|
|
765
|
+
// 模型偶尔在句首带个英文词(thinking / done 之类),去掉再入栏
|
|
766
|
+
.replace(/^[A-Za-z][A-Za-z\s]{1,12}(?=[\u4e00-\u9fa5])/, "")
|
|
765
767
|
.replace(/^[-•*\d.、)\s]+/, "")
|
|
766
768
|
.replace(/^["「『]|["」』]$/g, "")
|
|
767
769
|
.trim(),
|