HgCNO2 / reddit-bggfetcherbot

u/BGGFetcherBot is designed to reply to comments in r/boardgames if the comment includes game names in double brackets with links to the game on BoardGameGeek.com
GNU General Public License v3.0
3 stars 2 forks source link

Compile Game Find Regex Before Loop #8

Closed HgCNO2 closed 1 year ago

HgCNO2 commented 1 year ago

Per https://www.reddit.com/r/boardgames/comments/12rryy5/comment/jh0r4bw/?utm_source=reddit&utm_medium=web2x&context=3

re.compile the game_name_regex so the compilation doesn't happen on the fly every time.