diff --git a/metagpt/utils/a11y_tree.py b/metagpt/utils/a11y_tree.py index 133c4f63a4..3f48fa0d02 100644 --- a/metagpt/utils/a11y_tree.py +++ b/metagpt/utils/a11y_tree.py @@ -165,7 +165,7 @@ async def get_element_center(node_info): def extract_step(response: str, action_splitter: str = "```") -> str: - # find the first occurence of action + # find the first occurrence of action pattern = rf"{action_splitter}((.|\n)*?){action_splitter}" match = re.search(pattern, response) if match: