Update README.md
Browse files
README.md
CHANGED
@@ -126,7 +126,7 @@ PressRecent()
|
|
126 |
# -----------------------------
|
127 |
def parse_action(action_str: str) -> Tuple[str, Dict[str, Any]]:
|
128 |
"""Parse action string into action type + params."""
|
129 |
-
pattern = r"
|
130 |
match = re.match(pattern, action_str.strip(), re.DOTALL)
|
131 |
if not match:
|
132 |
print(f"Invalid action type: {action_str}")
|
|
|
126 |
# -----------------------------
|
127 |
def parse_action(action_str: str) -> Tuple[str, Dict[str, Any]]:
|
128 |
"""Parse action string into action type + params."""
|
129 |
+
pattern = r"^(\w+)\((.*)\)$"
|
130 |
match = re.match(pattern, action_str.strip(), re.DOTALL)
|
131 |
if not match:
|
132 |
print(f"Invalid action type: {action_str}")
|