This commit is contained in:
shenjackyuanjie 2022-02-07 23:03:42 +08:00
parent 7c41c25e72
commit b8fe1e237e

View File

@ -27,7 +27,7 @@ class CommandText:
self.value_dict = {} self.value_dict = {}
self.value_list = [] self.value_list = []
def find(self, text: str) -> Union[str, False]: def find(self, text: str) -> Union[str, bool]:
finding = re.match(text, self.text) finding = re.match(text, self.text)
if finding: if finding:
return finding.group() return finding.group()