regex fix

This commit is contained in:
alcoholicgirl
2026-04-27 02:07:01 +08:00
parent b720504e48
commit b4f167e5f6
2 changed files with 7 additions and 5 deletions

View File

@ -29,7 +29,7 @@ class Command:
class CommandChainParser:
CHAIN_PATTERN = r"^[a-zA-Z]+(\([^(]*\))?(\.[a-zA-Z]+(\([^(]*\))?)+"
CHAIN_PATTERN = r"^[a-zA-Z]+(\([^(]*\))?(\.[a-zA-Z]+(\([^(]*\))?)*"
def __init__(self, _command_chain: str) -> None:
self.command_chain = _command_chain