From e06d567aa2b47223237d2bab3dc18a24841d06e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20B=C3=BCchner?= Date: Fri, 29 Mar 2024 14:16:13 +0100 Subject: [PATCH] fix launchpad regex --- ubottu/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubottu/bot.py b/ubottu/bot.py index b77654e..61bdd6a 100644 --- a/ubottu/bot.py +++ b/ubottu/bot.py @@ -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]: