v3.11.8: fix _XML_TC_RE regex bug, fix test paths, 177/177 tests pass

This commit is contained in:
Roman | RyzenAdvanced
2026-05-26 20:21:31 +04:00
Unverified
parent 66fe3c07a3
commit 142a0a5859
3 changed files with 12 additions and 14 deletions

View File

@@ -2350,7 +2350,7 @@ def _normalize_tool_args(raw_args):
except json.JSONDecodeError:
return raw_args
_XML_TC_RE = re.compile(r'exec_command(.*?)</invoke>', re.DOTALL)
_XML_TC_RE = re.compile(r'<invoke><(\w+)(?:_command)?>(.*?)</\1(?:_command)?></invoke>', re.DOTALL)
_XML_ARG_VALUE_RE = re.compile(r'</?arg_value>\s*')
_PAREN_TC_RE = re.compile(