countdown: make new reminder regex non-greedy

This commit is contained in:
Brian S. Stephan 2017-02-22 22:25:20 -06:00
parent 0c69530cf9
commit 48beddb580
1 changed files with 1 additions and 1 deletions

View File

@ -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."""