mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Merge 8220bcedf6
into 472fb9f6ac
This commit is contained in:
commit
2a3a1a6c47
@ -403,6 +403,8 @@ class CustomArgument(Argument):
|
||||
|
||||
class SimpleArgument(Argument):
|
||||
def match(self, val: str, **kwargs) -> Tuple[str, Any]:
|
||||
if not val:
|
||||
return "", None
|
||||
if self.pass_raw:
|
||||
return "", val
|
||||
res = re.split(r"\s", val, 1)[0]
|
||||
|
Loading…
Reference in New Issue
Block a user