test(app): 補齊 isSafeRepoPath/extractBalancedJSON/normalizeText/repairJSONArrayWithAI/格式化函式測試
為可測性 export 三個內部函式(isSafeRepoPath、extractBalancedJSON/extractJSONText、normalizeText)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
fc10ab7266
commit
775cc575ae
+1
-1
@@ -108,7 +108,7 @@ function cleanText(value) {
|
||||
* @returns {string} 正規化後、以單一空白分隔的字串(可能為空字串)。
|
||||
* @remarks 用於 finding 與排除條目文字的雙向「包含」比對(applyExclusions、appendExclusions)。
|
||||
*/
|
||||
function normalizeText(value) {
|
||||
export function normalizeText(value) {
|
||||
return cleanText(value)
|
||||
.normalize('NFKC')
|
||||
.toLowerCase()
|
||||
|
||||
Reference in New Issue
Block a user