From 7255dd4735127c0a5a3f5dc5050560595d737c6a Mon Sep 17 00:00:00 2001 From: jkhsjdhjs Date: Mon, 17 Dec 2018 15:03:22 +0000 Subject: [PATCH] fix debian/ubuntu/apt/dpkg regex now doesn't match words like laptop, with 'apt' inside, anymore --- bot/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/linux.py b/bot/linux.py index d3a573e..b05a90d 100644 --- a/bot/linux.py +++ b/bot/linux.py @@ -21,7 +21,7 @@ GNU_LINUX = """I'd Just Like To Interject For A Moment. What you're referring class Linux(Plugin): KERNEL_FEED = 'https://www.kernel.org/feeds/kdist.xml' - @irc3.event(r'(?i)^:\S+ PRIVMSG (?P\S+) :.*(debian|ubuntu|apt|dpkg).*') + @irc3.event(r'(?i)^:\S+ PRIVMSG (?P\S+) :(?:.* )?(debian|ubuntu|apt|dpkg)(?: .*|$)') def debillian(self, target: str): """Annoying RE trigger for debian with variable count of E.""" if random.randint(0, 3) is 0: