mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-18 13:55:17 +02:00
fixed regexp to add support of unicode for strings
This commit is contained in:
parent
933a242370
commit
960ad61064
1 changed files with 1 additions and 1 deletions
|
|
@ -486,7 +486,7 @@ class RebuildSequenceView(Action):
|
|||
Returns:
|
||||
List[str]: A list of participants extracted from the sequence diagram.
|
||||
"""
|
||||
pattern = r"participant ([a-zA-Z\.0-9_]+)"
|
||||
pattern = r"participant ([\w\.]+)"
|
||||
matches = re.findall(pattern, mermaid_sequence_diagram)
|
||||
matches = [re.sub(r"[\\/'\"]+", "", i) for i in matches]
|
||||
return matches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue