Remove unused xmlPatternGroups configuration for consistency

Co-authored-by: mssoftjp <115339791+mssoftjp@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-08-15 06:55:43 +00:00
parent 74255f1263
commit 4fb0ba7ca7

View file

@ -45,13 +45,6 @@ export interface RepetitionThresholds {
export interface ContaminationPatterns {
/** Instruction patterns to remove from text beginning */
instructionPatterns: string[];
/** XML pattern groups for different contexts */
xmlPatternGroups: {
completeXmlTags: string[];
sentenceBoundedTags: string[];
lineBoundedTags: string[];
standaloneTags: string[];
};
/** Context patterns for general cleanup */
contextPatterns: string[];
/** Prompt snippet lengths for partial matching */
@ -113,27 +106,6 @@ export const CLEANING_CONFIG: CleaningConfig = {
'화자의 발언 내용만 정확히 기록해주세요'
],
xmlPatternGroups: {
completeXmlTags: [
'/<TRANSCRIPT[^>]*>([\\s\\S]*?)<\\/TRANSCRIPT>/g',
'/<transcript[^>]*>([\\s\\S]*?)<\\/transcript>/g',
'/<TRANSCRIPTION[^>]*>([\\s\\S]*?)<\\/TRANSCRIPTION>/g'
],
sentenceBoundedTags: [
'/<\\/?TRANSCRIPT[^>]*>/g',
'/<\\/?transcript[^>]*>/g',
'/<\\/?TRANSCRIPTION[^>]*>/g'
],
lineBoundedTags: [
'/^\\s*<[^>]*>\\s*$/gm',
'/^\\s*<\\/[^>]*>\\s*$/gm'
],
standaloneTags: [
'/<[^>]*\\/>/g',
'/<\\w+[^>]*>\\s*<\\/\\w+>/g'
]
},
contextPatterns: [
// Universal context patterns (structural)
'/^\\s*\\([^)]*Speaker[^)]*only[^)]*\\)\\s*$/gmi',