diff --git a/wordlinator/twitter/__init__.py b/wordlinator/twitter/__init__.py index a81b454..e79ef4d 100644 --- a/wordlinator/twitter/__init__.py +++ b/wordlinator/twitter/__init__.py @@ -17,7 +17,15 @@ import wordlinator.utils BASE_URL = "https://api.twitter.com/2" WORDLE_RE = re.compile( - r"Wordle(\w+)? (?P\d+) (?P[X\d])/6", re.IGNORECASE + r""" + Wordle # Line Leader + (\w+)? # etta factor (catches ...Golf, etc) + \s # single space + (?P\d+) # game number + \s # single space + (?P[X\d])/6 # score out of 6 + """, + re.IGNORECASE | re.VERBOSE, ) TOKEN = os.getenv("TWITTER_TOKEN")