Merge pull request 'fix(frontend): #1892 画面插入按句号分句' (#1902) from fix/1892-sentence-split-no-comma into develop
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Check push changed paths (push) Successful in 4s
CI/CD Pipeline / Build Staging API Image (push) Successful in 28s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 54s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 4m15s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 2m17s
CI/CD Pipeline / Integration Tests (push) Successful in 4m16s
CI/CD Pipeline / Validate - Style (push) Successful in 5m14s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 58s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m43s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 2m6s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m11s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 7m38s
CI/CD Pipeline / Validate - Security (push) Successful in 10m41s
CI/CD Pipeline / Unit Tests (push) Successful in 12m47s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 45h30m18s
CI/CD Pipeline / Build Production Web Image (push) Failing after 45h30m20s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 45h39m1s
CI/CD Pipeline / PR Build Web Image (push) Failing after 45h41m26s
CI/CD Pipeline / PR Build API Image (push) Failing after 45h40m59s
CI/CD Pipeline / Build Production API Image (push) Failing after 45h29m52s
CI/CD Pipeline / CI Gate (push) Failing after 45h29m51s
CI/CD Pipeline / Canary Release to Production (push) Failing after 45h29m50s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 45h29m51s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 45h40m58s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 45h43m15s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 45h38m33s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 45h38m33s
CI/CD Pipeline / Frontend Lint (push) Failing after 45h41m4s

This commit was merged in pull request #1902.
This commit is contained in:
2026-09-14 17:39:59 +08:00
@@ -22,8 +22,8 @@ export interface ScriptSentence {
endTime: number
}
/** 句子分隔符:中英文句号/问号/感叹号/分号/逗号/换行(覆盖中文短视频常用断句) */
const SENTENCE_SPLIT_RE = /[。!?!??!;;,,\n\r]+/
/** 句子分隔符:中英文句号/问号/感叹号/分号/换行(按句断,不在逗号处切;保持与后端一致) */
const SENTENCE_SPLIT_RE = /[。!?!??!;;\n\r]+/
/**
* 分句并计算每句的起止时间。