From 8aa6c71184fce61107f5bc0423ba661d8a01c23b Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 19 Oct 2019 15:03:52 -0700 Subject: [PATCH] Fix the gnu+thing patch --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 55fef1f..573164e 100644 --- a/bot.py +++ b/bot.py @@ -320,9 +320,9 @@ def msg_ping(match: Match[str]) -> Response: @handle_message(r'.*\b(nano|linux|windows|emacs)\b', flags=re.IGNORECASE) def msg_gnu_please(match: Match[str]) -> Response: msg, word = match[3], match[4] - query = re.match(fr'gnu[/+]{word}', msg, flags=re.IGNORECASE) + query = re.match(f'gnu[/+]{word}', msg, flags=re.IGNORECASE) if query: - return MessageResponse(match, f'YES! {query.match(0)}') + return MessageResponse(match, f'YES! {query[0]}') else: return MessageResponse(match, f"Um please, it's GNU/{esc(word)}!")