mirror of
https://github.com/maubot/maubot
synced 2025-08-29 03:20:39 +00:00
fix: return correct no. of vars. (remaining_val missing). Fixes arg issues with custom arguments.
This commit is contained in:
parent
b19a2ea487
commit
ae77f37639
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ class CustomArgument(Argument):
|
||||||
|
|
||||||
def match(self, val: str, **kwargs) -> Tuple[str, Any]:
|
def match(self, val: str, **kwargs) -> Tuple[str, Any]:
|
||||||
if self.pass_raw:
|
if self.pass_raw:
|
||||||
return self.matcher(val)
|
return "", self.matcher(val)
|
||||||
orig_val = val
|
orig_val = val
|
||||||
val = re.split(r"\s", val, 1)[0]
|
val = re.split(r"\s", val, 1)[0]
|
||||||
res = self.matcher(val)
|
res = self.matcher(val)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue