Skip to content

Conversation

@pekopoke
Copy link
Collaborator

No description provided.

code_block = match.group(0)
extracted_segments.append(code_block)
code_parts.append(code_block.strip('`').strip())
# 同时匹配行内代码 `...` 和代码块 ```...```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些分割的方法变化都加一下测试用例吧

@e06084 e06084 merged commit 0d60eca into opendatalab:main Aug 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants