From 16e4b8e6d86f3130b141e4b751a0d146951dd909 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 21 Jul 2021 15:09:29 +0300 Subject: [PATCH] Fix simple patterns throwing errors --- reactbot/simplepattern.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactbot/simplepattern.py b/reactbot/simplepattern.py index d9e74e1..4d3e2c3 100644 --- a/reactbot/simplepattern.py +++ b/reactbot/simplepattern.py @@ -22,6 +22,10 @@ class BlankMatch: def groups() -> List[str]: return [] + @staticmethod + def group(group: int) -> str: + return "" + @staticmethod def groupdict() -> Dict[str, str]: return {}