mirror of
https://github.com/maubot/maubot
synced 2025-08-29 11:10:37 +00:00
Merge 8220bcedf6
into b771b79b91
This commit is contained in:
commit
178ca8338b
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue