From 48beddb5805ffa848d4ee0056c795bee1115a956 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 22 Feb 2017 22:25:20 -0600 Subject: [PATCH] countdown: make new reminder regex non-greedy --- countdown/ircplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/countdown/ircplugin.py b/countdown/ircplugin.py index 01eb9d7..e34cd34 100644 --- a/countdown/ircplugin.py +++ b/countdown/ircplugin.py @@ -20,7 +20,7 @@ log = logging.getLogger('countdown.ircplugin') class Countdown(Plugin): """Report on countdown items.""" - new_reminder_regex = r'remind\s+([^\s]+)\s+(at|in|on)\s+(.*)\s+(to|that)\s+(.*)' + new_reminder_regex = r'remind\s+([^\s]+)\s+(at|in|on)\s+(.*?)\s+(to|that)\s+(.*)' def __init__(self, bot, connection, event): """Initialize some stuff."""