mirror of
https://github.com/maubot/maubot
synced 2025-08-29 17:50:38 +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):
|
class SimpleArgument(Argument):
|
||||||
def match(self, val: str, **kwargs) -> Tuple[str, Any]:
|
def match(self, val: str, **kwargs) -> Tuple[str, Any]:
|
||||||
|
if not val:
|
||||||
|
return "", None
|
||||||
if self.pass_raw:
|
if self.pass_raw:
|
||||||
return "", val
|
return "", val
|
||||||
res = re.split(r"\s", val, 1)[0]
|
res = re.split(r"\s", val, 1)[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue