fix launchpad regex

This commit is contained in:
Nils Büchner 2024-03-29 14:16:13 +01:00
parent f91d8e46e5
commit e06d567aa2

View file

@ -87,7 +87,7 @@ class Ubottu(Plugin):
return True
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:
if match:
if match[1]: