fix launchpad regex
This commit is contained in:
parent
f91d8e46e5
commit
e06d567aa2
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class Ubottu(Plugin):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@command.passive("bug #?(\d+)|https?:\/\/bugs\.launchpad\.net\/.+/(\d+)")
|
@command.passive("bug #?(\d+)|https?:\/\/bugs\.launchpad\.net\/[^\d]*(\d+)")
|
||||||
async def command_bug(self, evt: MessageEvent, match: Tuple[str]) -> None:
|
async def command_bug(self, evt: MessageEvent, match: Tuple[str]) -> None:
|
||||||
if match:
|
if match:
|
||||||
if match[1]:
|
if match[1]:
|
||||||
|
|
Loading…
Add table
Reference in a new issue