mirror of
https://github.com/langchain-ai/langgraph-codeact.git
synced 2026-07-19 13:26:45 -04:00
Switch to a more robust code detection regex #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yoavkantor on GitHub (Aug 31, 2025).
Mistral-large generates code blocks that are not detected by the regex.
Although they have
<code>orpython <code>structure.Maybe some requirements can be relaxed.
Suggested more relaxed regex: r'
(?:\w+)?\n?(.*?)\n?'Example for a non-detected code block: