fix(council-archive): handle CRLF line endings in structural tag detection
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -45,7 +45,7 @@ function isStructuralOpen(text: string, idx: number): boolean {
|
||||
|
||||
function isStructuralClose(text: string, idx: number): boolean {
|
||||
const afterIdx = idx + CLOSING_TAG.length
|
||||
return afterIdx === text.length || text[afterIdx] === "\n"
|
||||
return afterIdx === text.length || text[afterIdx] === "\n" || text[afterIdx] === "\r"
|
||||
}
|
||||
|
||||
function findLastStructuralClose(text: string): number {
|
||||
|
||||
Reference in New Issue
Block a user